<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>42285</bug_id>
          
          <creation_ts>2010-07-14 13:28:44 -0700</creation_ts>
          <short_desc>LegacyHTMLTreeBuilder inserts extra RenderText {#text} at (0,0) size 0x0 for newlines at end of document</short_desc>
          <delta_ts>2010-07-19 13:38:57 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebCore Misc.</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>41123</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Eric Seidel (no email)">eric</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>abarth</cc>
    
    <cc>hyatt</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>251396</commentid>
    <comment_count>0</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-07-14 13:28:44 -0700</bug_when>
    <thetext>LegacyHTMLTreeBuilder inserts extra RenderText {#text} at (0,0) size 0x0 for newlines at end of document

Document:
&lt;img&gt;
&lt;/body&gt;
&lt;/html&gt;

(note newline after &lt;/html&gt;)

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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>253368</commentid>
    <comment_count>1</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2010-07-19 13:38:57 -0700</bug_when>
    <thetext>Eric fixed this in another bug.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>