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

David Hyatt hyatt at apple.com
Wed Jun 16 14:12:01 PDT 2010


Whitespace nodes most commonly occur between elements, so they can't be coalesced.

dave

On Jun 14, 2010, at 7:00 PM, Matt 'Murph' Finnicum wrote:

> 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
> _______________________________________________
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev



More information about the webkit-dev mailing list