<?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>91596</bug_id>
          
          <creation_ts>2012-07-18 00:31:51 -0700</creation_ts>
          <short_desc>ShadowRoot.innerHTML should not use the host&apos;s parsing rule.</short_desc>
          <delta_ts>2012-08-08 00:34:16 -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>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</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>72352</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Shinya Kawanaka">shinyak</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>dglazkov</cc>
    
    <cc>dominicc</cc>
    
    <cc>hayato</cc>
    
    <cc>kaustubh.ra</cc>
    
    <cc>morrita</cc>
    
    <cc>shinyak</cc>
    
    <cc>tasak</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>672079</commentid>
    <comment_count>0</comment_count>
    <who name="Shinya Kawanaka">shinyak</who>
    <bug_when>2012-07-18 00:31:51 -0700</bug_when>
    <thetext>In ShadowRoot::setInnerHTML, host() is used for context element to createFragmentForInnerOuterHTML().
This changes the behavior of  shadowRoot.innerHTML = &quot;...&quot; if the host element is changed.

e.g. For &lt;textarea&gt;, almost of tags will be ignored.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>672093</commentid>
    <comment_count>1</comment_count>
      <attachid>152955</attachid>
    <who name="Shinya Kawanaka">shinyak</who>
    <bug_when>2012-07-18 00:54:30 -0700</bug_when>
    <thetext>Created attachment 152955
Repro</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>672095</commentid>
    <comment_count>2</comment_count>
    <who name="Shinya Kawanaka">shinyak</who>
    <bug_when>2012-07-18 00:56:39 -0700</bug_when>
    <thetext>In the repro, shadowRoot1.innerHTML.firstChild and shadowRoot2.innerHTML.firstChild should be the same. However, since xmp does not accept any tag, shadowRoot1.firstChild is a text node and shadowRoot2.firstChild is an anchor node.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>672176</commentid>
    <comment_count>3</comment_count>
    <who name="Shinya Kawanaka">shinyak</who>
    <bug_when>2012-07-18 02:52:12 -0700</bug_when>
    <thetext>I&apos;m trying to attack this now. Changing Element to ContainerNode worked, but I&apos;m not sure It&apos;s OK.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>673079</commentid>
    <comment_count>4</comment_count>
    <who name="Shinya Kawanaka">shinyak</who>
    <bug_when>2012-07-18 19:10:30 -0700</bug_when>
    <thetext>I&apos;ve filed the Bug in the spec...
https://www.w3.org/Bugs/Public/show_bug.cgi?id=18321

Using the host element&apos;s parsing rule seems natural to me now, but we have to care about what the host element is when using innerHTML.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>690020</commentid>
    <comment_count>5</comment_count>
    <who name="Shinya Kawanaka">shinyak</who>
    <bug_when>2012-08-08 00:34:16 -0700</bug_when>
    <thetext>Since the spec was updated so that the host element is used for parsing context element, this bug is now invalid.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>152955</attachid>
            <date>2012-07-18 00:54:30 -0700</date>
            <delta_ts>2012-07-18 00:54:30 -0700</delta_ts>
            <desc>Repro</desc>
            <filename>innerhtml-parsing.html</filename>
            <type>text/html</type>
            <size>411</size>
            <attacher name="Shinya Kawanaka">shinyak</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sPgo8c2NyaXB0IHNyYz0icmVzb3VyY2VzL3BvbHlmaWxsLmpz
Ij48L3NjcmlwdD4KPHhtcCBpZD0iaG9zdDEiPjwveG1wPgo8ZGl2IGlkPSJob3N0MiI+PC9kaXY+
Cgo8c2NyaXB0Pgp2YXIgc2hhZG93Um9vdDEgPSBuZXcgV2ViS2l0U2hhZG93Um9vdChob3N0MSk7
CnZhciBzaGFkb3dSb290MiA9IG5ldyBXZWJLaXRTaGFkb3dSb290KGhvc3QyKTsKCnNoYWRvd1Jv
b3QxLmlubmVySFRNTCA9ICI8YT5mb29iYXI8L2E+IjsKc2hhZG93Um9vdDIuaW5uZXJIVE1MID0g
IjxhPmZvb2JhcjwvYT4iOwoKY29uc29sZS5sb2coc2hhZG93Um9vdDEuZmlyc3RDaGlsZC50YWdO
YW1lKTsKY29uc29sZS5sb2coc2hhZG93Um9vdDIuZmlyc3RDaGlsZC50YWdOYW1lKTsKPC9zY3Jp
cHQ+CjwvaHRtbD4K
</data>

          </attachment>
      

    </bug>

</bugzilla>