W3C home > Mailing lists > Public > whatwg@whatwg.org > November 2005

[whatwg] [html5] html:style parsing

From: L. David Baron <dbaron@dbaron.org>
Date: Fri, 4 Nov 2005 15:17:48 -0800
Message-ID: <20051104231748.GA31810@ridley.dbaron.org>
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.pgp>
Received on Friday, 4 November 2005 15:17:48 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:43 UTC