W3C home > Mailing lists > Public > public-html@w3.org > December 2010

Re: DOM comments inside a <style> element

From: Daniel Glazman <daniel.glazman@disruptive-innovations.com>
Date: Mon, 27 Dec 2010 13:04:43 +0100
Message-ID: <4D1880DB.3010500@disruptive-innovations.com>
To: Boris Zbarsky <bzbarsky@MIT.EDU>
CC: HTML WG <public-html@w3.org>
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

This archive was generated by hypermail 2.3.1 : Thursday, 29 October 2015 10:16:07 UTC