Re: Tree construction: Coalescing text nodes

On Nov 18, 2009, at 18:41, Geoffrey Sneddon wrote:

>> Is it really bad for the parser to extend script-created text nodes?
> 
> No. I think, as I said above, that always coalescing is a good idea to avoid weird bugs. I also think that even coalescing in such cases shouldn't be gratuitously expensive overall.

OK. I'll make the HTML5 parser in Gecko extend text nodes (even script-created) and see what happens.

...Unless someone already knows that legacy dictates otherwise. (Please speak up if you know legacy scripts to expect their text nodes not to get extended.)

-- 
Henri Sivonen
hsivonen@iki.fi
http://hsivonen.iki.fi/

Received on Thursday, 19 November 2009 09:01:30 UTC