W3C home > Mailing lists > Public > public-html@w3.org > November 2009

Re: Tree construction: Coalescing text nodes

From: Henri Sivonen <hsivonen@iki.fi>
Date: Thu, 19 Nov 2009 11:00:52 +0200
Cc: Ian Hickson <ian@hixie.ch>, public-html@w3.org, pjt47@cam.ac.uk
Message-Id: <76175662-D498-46E7-8DF8-D884333A2BA0@iki.fi>
To: Geoffrey Sneddon <gsneddon@opera.com>
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
Received on Thursday, 19 November 2009 09:01:30 UTC

This archive was generated by hypermail 2.4.0 : Saturday, 9 October 2021 18:45:03 UTC