[webkit-dev] Why so many text nodes in the DOM? (especially ones with just whitespace)
Trey Matteson
trey at usa.net
Thu Jun 17 14:39:20 PDT 2010
I have seen sites that make this assumption. Even worked on one. From a website writer's view, the whitespace nodes are usually a pain, but if you add some hacks to skip around them (as ugly as that is), you expect those hacks to keep working.
trey
On Jun 17, 2010, at 2:19 PM, David Hyatt wrote:
> 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.
>
> dave
> (hyatt at apple.com)
>
> _______________________________________________
> 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