[Webkit-unassigned] [Bug 42285] New: LegacyHTMLTreeBuilder inserts extra RenderText {#text} at (0, 0) size 0x0 for newlines at end of document

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jul 14 13:28:44 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=42285

           Summary: LegacyHTMLTreeBuilder inserts extra RenderText {#text}
                    at (0,0) size 0x0 for newlines at end of document
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Mac OS X 10.5
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebCore Misc.
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: eric at webkit.org
                CC: hyatt at apple.com, abarth at webkit.org


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

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list