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

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

From: Ian Hickson <ian@hixie.ch>
Date: Mon, 17 Oct 2005 05:10:00 +0000 (UTC)
To: Stanimir Stamenkov <stanio@myrealbox.com>
Cc: www-style@w3.org
Message-ID: <Pine.LNX.4.62.0510170508340.25031@dhalsim.dreamhost.com>

On Sun, 16 Oct 2005, Stanimir Stamenkov wrote:
> 
> That's somewhat incompatible with the DOM Level 3 'Node.textContent' 
> property. Is there a specific reason for this specification (WHATWG's 
> WA1) not considering the text items/nodes which are not direct children 
> of the 'style' element?

It's (much) faster to crawl just the direct text children than to crawl 
the entire tree. Since this is error handling behaviour, there is little 
reason to go any way other than efficiency in this case.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Monday, 17 October 2005 05:10:12 GMT

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