[whatwg] [html5] html:style parsing

L. David Baron dbaron at dbaron.org
Fri Nov 4 15:17:48 PST 2005


On Monday 2005-10-31 10:53 +1100, Lachlan Hunt wrote:
> The current web-apps draft:
> 
> | For styling languages that consist of pure text, user agents must use
> | a concatenation of the contents of all the text nodes and CDATA nodes
> | that are direct children of the style  element (ignoring any other
> | nodes such as comments or elements), in tree order.

The specification should be clearer that for SGML-based documents (as
opposed to XML-based documents), the parsing rules may mean that things
that look like child nodes aren't actually child nodes (since STYLE has
CDATA parsing according to the HTML4 DTD, and is generally implemented
far closer to that than to normal parsing).  If you specify anything
precisely regarding this, please write testcases to make sure it matches
what's actually implemented, which is probably what's required by the
Web.

-David

-- 
L. David Baron                                <URL: http://dbaron.org/ >
           Technical Lead, Layout & CSS, Mozilla Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20051104/afd4191d/attachment-0001.pgp>


More information about the whatwg mailing list