Safari hangs loading large page http://www.ronniebowman.com/guestbook.html
Created attachment 7341 [details] Sample
<rdar://problem/4549742>
The problem here is that this page ends up creating a deeply nested DOM tree. So anything that's n^2 for the depth of the DOM tree ends up killing us here. The time is mostly spent in rendering code. We should see what we can do to make the rendering speed linear here. Or we could figure out why the tree ends up so deeply nested -- not sure that it does in other browsers.
The reason this does not hang in Firefox is that Gecko produces a relatively flat DOM tree, while we produce a deeply nested one, for this HTML. So I suppose we should consider this an HTML parser bug. Accordingly, moving to the HTML DOM component.
Created attachment 13272 [details] Test case This piece of broken HTML from the page shows the difference between the DOM tree WebKit and Gecko generate for this bug.
Created attachment 13888 [details] Make "<" terminate tag and attribute names
I think there are a couple of duplicates of this bug in bugzilla.
Comment on attachment 13888 [details] Make "<" terminate tag and attribute names r=me
Committed revision 20634. I didn't search for Bugzilla duplicates, as I don't remember any, even vaguely.
(In reply to comment #9) > I didn't search for Bugzilla duplicates, as I don't remember any, even vaguely. Mitz, were you thinking of the missing </title> tag (Bug 3905) or missing </script> tag (Bug 9370) bugs?
(In reply to comment #10) > (In reply to comment #9) > > I didn't search for Bugzilla duplicates, as I don't remember any, even vaguely. > > Mitz, were you thinking of the missing </title> tag (Bug 3905) or missing > </script> tag (Bug 9370) bugs? > No... I recall them involving <a> tags. Maybe I'm remembering wrong :c)
*** Bug 6393 has been marked as a duplicate of this bug. ***