W3C home > Mailing lists > Public > www-style@w3.org > October 2005

Re: [css21] parsing of comment and element nodes inside style declaration

From: Stanimir Stamenkov <stanio@myrealbox.com>
Date: Mon, 17 Oct 2005 23:06:51 +0300
Message-ID: <4354045B.4050306@myrealbox.com>
To: www-style@w3.org

/Boris Zbarsky/:
> Stanimir Stamenkov wrote:
>
>> I wonder how much faster it would be if the data is processed from a 
>> stream
> 
> Given that the stylesheet needs, in general, to be reparsed when the 
> <style> DOM node is moved in the DOM, the only way the style data is 
> processed "from a stream" is if there are two separate codepaths for the 
> two cases...
> 
>> and the tree is going to be crawled anyway, at least to detect the 
>> well-formed end of the 'style' element (I didn't understand the "error 
>> handling behavior" part)
> 
> Per the XHTML DTD, elements are not allowed as children of <style>.  So 
> a document that has such markup, while well-formed, is not valid.

Thank you for your reply - all of this makes perfect sense to me, now.

-- 
Stanimir
Received on Monday, 17 October 2005 20:06:58 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:41 GMT