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
Eric fixed this in another bug.