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

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>12434</bug_id>
          
          <creation_ts>2011-04-06 08:52:15 +0000</creation_ts>
          <short_desc>Spec doesn&apos;t match IE when calling insertAdjacentHTML with position afterend or beforebegin on head or body</short_desc>
          <delta_ts>2011-09-05 10:42:35 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>DOM Parsing and Serialization</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>needs testcase</status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Henri Sivonen">hsivonen</reporter>
          <assigned_to name="Ms2ger">Ms2ger</assigned_to>
          <cc>ayg</cc>
    
    <cc>ian</cc>
    
    <cc>jonas</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
    
    <cc>public-webapps</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>47192</commentid>
    <comment_count>0</comment_count>
    <who name="Henri Sivonen">hsivonen</who>
    <bug_when>2011-04-06 08:52:15 +0000</bug_when>
    <thetext>http://software.hixie.ch/utilities/js/live-dom-viewer/saved/918

IE9, IE8 and IE6 (IE7 not tested) behaves as if the context node for fragment parsing in the insertAdjacentHTML case was &quot;body&quot; when it logically should be &quot;html&quot;.

Since it&apos;s their API originally, I think it would be prudent to codify this quirk in the spec.

Note that there is precedent: The same quirk exists in Range::createContextualFragment.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47193</commentid>
    <comment_count>1</comment_count>
    <who name="Henri Sivonen">hsivonen</who>
    <bug_when>2011-04-06 08:54:33 +0000</bug_when>
    <thetext>This should only apply to the HTML case, not the XML case.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47205</commentid>
    <comment_count>2</comment_count>
    <who name="Jonas Sicking (Not reading bugmail)">jonas</who>
    <bug_when>2011-04-06 13:58:32 +0000</bug_when>
    <thetext>Are there pages that depend on this?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47206</commentid>
    <comment_count>3</comment_count>
    <who name="Jonas Sicking (Not reading bugmail)">jonas</who>
    <bug_when>2011-04-06 13:59:12 +0000</bug_when>
    <thetext>Also, does this affect both how content gets parsed and where it gets inserted? Or just how content gets parsed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47207</commentid>
    <comment_count>4</comment_count>
    <who name="Henri Sivonen">hsivonen</who>
    <bug_when>2011-04-06 14:19:05 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; Are there pages that depend on this?

I don&apos;t know.

(In reply to comment #3)
&gt; Also, does this affect both how content gets parsed and where it gets inserted?
&gt; Or just how content gets parsed.

This affects parsing only. Specifically, it affects the creation of implicit head and body nodes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50575</commentid>
    <comment_count>5</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-07-01 22:21:32 +0000</bug_when>
    <thetext>What do other browsers do today?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51059</commentid>
    <comment_count>6</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-07-14 22:23:26 +0000</bug_when>
    <thetext>Is there a test case showing the difference? I&apos;d like to study this in other UAs before making a decision on this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53844</commentid>
    <comment_count>7</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2011-08-04 05:33:45 +0000</bug_when>
    <thetext>mass-move component to LC1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56334</commentid>
    <comment_count>8</comment_count>
    <who name="Ms2ger">Ms2ger</who>
    <bug_when>2011-09-05 10:42:35 +0000</bug_when>
    <thetext>https://bitbucket.org/ms2ger/dom-parsing-and-serialization/changeset/a5d7da5a4f86

Henri, could you confirm this is the correct fix?</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>