W3C home > Mailing lists > Public > public-html@w3.org > January 2011

Re: DOM comments inside a <style> element

From: Toby Inkster <tai@g5n.co.uk>
Date: Sat, 1 Jan 2011 23:11:34 +0000
To: "Simon Pieters" <simonp@opera.com>
Cc: "HTML WG" <public-html@w3.org>, "Boris Zbarsky" <bzbarsky@mit.edu>
Message-ID: <20110101231134.5e7a4f16@miranda.g5n.co.uk>
On Mon, 27 Dec 2010 13:11:24 +0100
"Simon Pieters" <simonp@opera.com> wrote:

> For styling languages that consist of pure text

This seems to me that the agent needs to know which styling languages
"consist of pure text" (whatever that means! does CSS consist of pure
text? does XML?)

I'd suggest something along the lines of...

For <style> elements where the type attribute matches /\/(.+\+)xml$/i
the style sheet consists of the DOM subtree within the <style> element.
Any other styling languages consist of pure text; user agents must
evaluate style elements by passing the concatenation of the contents of
all the text nodes that are direct children of the style element (not
any other nodes such as comments or elements), in tree order, to the
style system.

-- 
Toby A Inkster
<mailto:mail@tobyinkster.co.uk>
<http://tobyinkster.co.uk>
Received on Saturday, 1 January 2011 23:11:56 UTC

This archive was generated by hypermail 2.3.1 : Monday, 29 September 2014 09:39:21 UTC