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

2010-06-18 Thread Andreas Delmelle
On 17 Jun 2010, at 20:37, Alexey Proskuryakov wrote: 17.06.2010, в 9:53, Andreas Delmelle написал(а): If WebKit chooses, for example, to ignore character events from the parser in nodes where logically it doesn't make sense to have stray characters That would break e.g. Web sites

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

2010-06-18 Thread Eric Seidel
firstElementChild already exists in modern browsers: http://www.w3.org/TR/ElementTraversal/#interface-elementTraversal Anyway, this thread is done. On Fri, Jun 18, 2010 at 10:27 AM, Andreas Delmelle andreas.delme...@telenet.be wrote: On 17 Jun 2010, at 20:37, Alexey Proskuryakov wrote:

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

2010-06-17 Thread Andreas Delmelle
On 16 Jun 2010, at 23:12, David Hyatt wrote: 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.

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

2010-06-17 Thread David Hyatt
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

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

2010-06-17 Thread Matt 'Murph' Finnicum
On Thu, Jun 17, 2010 at 4:19 PM, David Hyatt hy...@apple.com 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

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

2010-06-17 Thread Gustavo Sverzut Barbieri
On Thu, Jun 17, 2010 at 6:24 PM, Matt 'Murph' Finnicum mattf...@gmail.com wrote: On Thu, Jun 17, 2010 at 4:19 PM, David Hyatt hy...@apple.com 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

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

2010-06-17 Thread David Hyatt
On Jun 17, 2010, at 4:07 PM, Eric Seidel wrote: A does not follow from B in that sentence, that current memory fragmentation means we need to strip whitespace nodes. Yeah exactly. Let's see some measurements that show the presence of these nodes are a real problem. It would also be

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

2010-06-17 Thread Trey Matteson
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

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

2010-06-17 Thread David Hyatt
I filed https://bugs.webkit.org/show_bug.cgi?id=40800 to track this issue. I think we can take further discussion to the bug. dave (hy...@apple.com) ___ webkit-dev mailing list webkit-dev@lists.webkit.org

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

2010-06-16 Thread David Hyatt
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