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

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 UTC