Re: DOM comments inside a <style> element

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