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)
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 | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Adam Barth
Eric fixed this in another bug.