Bug 42285

Summary: LegacyHTMLTreeBuilder inserts extra RenderText {#text} at (0,0) size 0x0 for newlines at end of document
Product: WebKit Reporter: Eric Seidel (no email) <eric>
Component: WebCore Misc.Assignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: abarth, hyatt
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: OS X 10.5   
Bug Depends on:    
Bug Blocks: 41123    

Eric Seidel (no email)
Reported 2010-07-14 13:28:44 PDT
LegacyHTMLTreeBuilder inserts extra RenderText {#text} at (0,0) size 0x0 for newlines at end of document Document: <img> </body> </html> (note newline after </html>) LegacyHTMLTreeBuilder rendering tree: RenderBlock {HTML} at (0,0) size 800x600 RenderBody {BODY} at (8,8) size 784x584 RenderImage {IMG} at (0,0) size 0x0 RenderText {#text} at (0,0) size 0x0 RenderText {#text} at (0,0) size 0x0 RenderText {#text} at (0,0) size 0x0 HTML5 HTMLTreeBuilder rendering tree: RenderBlock {HTML} at (0,0) size 800x600 RenderBody {BODY} at (8,8) size 784x584 RenderImage {IMG} at (0,0) size 0x0 RenderText {#text} at (0,0) size 0x0 This affects several hundred tests. I suspect the HTML5 tree builder is immune to this because it has code to coalesce text nodes
Attachments
Adam Barth
Comment 1 2010-07-19 13:38:57 PDT
Eric fixed this in another bug.
Note You need to log in before you can comment on or make changes to this bug.