W3C home > Mailing lists > Public > public-html@w3.org > May 2007

Re: Unscoped <style> found outside the <head>

From: David Hyatt <hyatt@apple.com>
Date: Sun, 27 May 2007 01:31:16 -0700
Message-Id: <A684DFC6-6399-42DD-9848-352E4CF21129@apple.com>
Cc: public-html@w3.org
To: Alan Dean <alan.dean@gmail.com>

<style scoped> would handle this use case.  A feed aggregator that  
did the stitching together of multiple feeds would want to add the  
scoped attribute if missing to any <style> elements from individual  
feed fragments anyway (to avoid style collisions between different  

The "stitching together" use case is where scoped style really  
shines.  I am proposing that <style scoped> would still be conformant  
if used outside the <head>, but that an unscoped <style> would not  
(because of its dangerous property of applying to the entire page  
content, which is virtually never what the author actually intended).


On May 27, 2007, at 1:23 AM, Alan Dean wrote:

> Dave,
> If I understand the nature of the markup constraint that you request,
> would this not make html5 fragments much harder to work with, in the
> context of RSS / Atom / etc feeds? The author does not control the
> <head> element in that case, and so would be unable to apply any
> inline styling to 'html5 conforming' fragments. Or am I missing
> something?
> Regards,
> Alan Dean
> http://thoughtpad.net/alan-dean
Received on Sunday, 27 May 2007 08:55:55 UTC

This archive was generated by hypermail 2.4.0 : Saturday, 9 October 2021 18:44:13 UTC