[webkit-dev] Why so many text nodes in the DOM? (especially ones with just whitespace)

Matt 'Murph' Finnicum mattfinn at gmail.com
Mon Jun 14 17:00:24 PDT 2010


Why are there so many Text nodes in the DOM? I had a look at the initial DOM
tree from rendering slashdot, and there are 1959 Text nodes. Of those 1959,
1246 were whitespace-only nodes.

Does there need to be this many nodes? Why can't whitespace be combined with
the nodes next to it?

Thanks,
--Murph
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20100614/1220579c/attachment.html>


More information about the webkit-dev mailing list