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

David Hyatt hyatt at apple.com
Thu Jun 17 14:19:35 PDT 2010

On Jun 17, 2010, at 2:45 PM, Gustavo Sverzut Barbieri wrote:

> David, it's bit more than annoying, it's fragmenting memory for no
> good. In the long run on systems will small memory it does make a
> difference :-/
> I'd like to see some option, maybe compile-time, to strip these
> useless whitespaces.

As Alexey points out, this is a compatibility issue though.  People write code assuming the whitespace nodes are there.  If you remove them, you'll see Web site breakage.

(hyatt at apple.com)

More information about the webkit-dev mailing list