<?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>54689</bug_id>
          
          <creation_ts>2011-02-17 14:14:45 -0800</creation_ts>
          <short_desc>HTML Fragment parsing bug in HTMLHtmlElement.</short_desc>
          <delta_ts>2011-03-14 14:36:18 -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>DOM</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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Nordman">michaeln</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>abarth</cc>
    
    <cc>aestes</cc>
    
    <cc>michaeln</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>353167</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Nordman">michaeln</who>
    <bug_when>2011-02-17 14:14:45 -0800</bug_when>
    <thetext>Looks like the test for fragment&apos;ness when a synthesized &lt;html&gt; element for an innerHtml fragment no longer functions properly in HTMLHtmlElement::insertedByParser().

void HTMLHtmlElement::insertedByParser()
{
    // When parsing a fragment, its dummy document has a null parser.
    if (!document()-&gt;parser() || !document()-&gt;parser()-&gt;documentWasLoadedAsPartOfNavigation())
        return;

That test no longer weeds out these elements so the method continues when it shouldn&apos;t. This has bad consequences for the appcache system.

See http://code.google.com/p/chromium/issues/detail?id=72986 for some history.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>353266</commentid>
    <comment_count>1</comment_count>
    <who name="Andy Estes">aestes</who>
    <bug_when>2011-02-17 17:30:47 -0800</bug_when>
    <thetext>Working on it. I actually think this will be fixed by the patch I&apos;m uploading to https://bugs.webkit.org/show_bug.cgi?id=48719, which will not create an HTML element during fragment parsing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>353267</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Nordman">michaeln</who>
    <bug_when>2011-02-17 17:31:57 -0800</bug_when>
    <thetext>Thank you!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>361986</commentid>
    <comment_count>3</comment_count>
    <who name="Andy Estes">aestes</who>
    <bug_when>2011-03-03 15:03:28 -0800</bug_when>
    <thetext>Michael, can you verify that this assertion is no longer hit in a build with r80231?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>361987</commentid>
    <comment_count>4</comment_count>
    <who name="Andy Estes">aestes</who>
    <bug_when>2011-03-03 15:03:53 -0800</bug_when>
    <thetext>Sorry, I had assertions on the mind. I meant to say bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>361997</commentid>
    <comment_count>5</comment_count>
    <who name="Michael Nordman">michaeln</who>
    <bug_when>2011-03-03 15:22:39 -0800</bug_when>
    <thetext>Sure, when we roll this revision into view for chrome i&apos;ll take a look.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>367238</commentid>
    <comment_count>6</comment_count>
    <who name="Michael Nordman">michaeln</who>
    <bug_when>2011-03-14 14:35:45 -0700</bug_when>
    <thetext>Looks good to me. I&apos;m no longer seeing multiple invocations of selectCache() for html fragments.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>367239</commentid>
    <comment_count>7</comment_count>
    <who name="Andy Estes">aestes</who>
    <bug_when>2011-03-14 14:36:18 -0700</bug_when>
    <thetext>(In reply to comment #6)
&gt; Looks good to me. I&apos;m no longer seeing multiple invocations of selectCache() for html fragments.

Thanks for checking Michael!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>