Re: DOM comments inside a <style> element

Le 27/12/10 12:40, Boris Zbarsky a écrit :

> Consistency with what?

Parsing of serialization of the tree should give the same result.

> Right now, the behavior is purely based on the DOM: the textContent of
> the <style> element is passed to the CSS parser. At least apparently in
> non-Webkit browsers.
>
> It sounds like you're proposing some other algorithm for determining the
> data to pass to the CSS parser. What algorithm?

Data passed to the CSS parser consists of the concatenation of
children's textContent for text node and cdata sections and
"<!--"+data+"-->" for comments.

</Daniel>

Received on Monday, 27 December 2010 12:05:15 UTC