[whatwg] [html5] html:style parsing

Lachlan Hunt lachlan.hunt at lachy.id.au
Sun Oct 30 15:53:05 PST 2005

Ian Hickson wrote:
> On Sun, 30 Oct 2005, Anne van Kesteren wrote:
>> For XML documents not all elements are ignored. Elements with known semantics
>> are parsed.
> This is correct. What says otherwise?

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.

That definition is unclear in the case of:

   p { background:red }
   <style> p { background:lime } </style>

It says the content of nested elements should be ignored; but since it 
is a style element itself, it's not being ignored by Mozilla.

Lachlan Hunt

More information about the whatwg mailing list