<?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>102864</bug_id>
          
          <creation_ts>2012-11-20 20:13:15 -0800</creation_ts>
          <short_desc>elements APPLET,FIELDSET,FRAME,IFRAME,IMG,INPUT,OBJECT,SELECT,TEXTAREA are not able to host shadow tree</short_desc>
          <delta_ts>2019-10-04 22:21:52 -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>WONTFIX</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>
          <dependson>82313</dependson>
          <blocked>188643</blocked>
    
    <blocked>103230</blocked>
          <everconfirmed>0</everconfirmed>
          <reporter name="Aleksei Yu. Semenov">a.semenov</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>morrita</cc>
    
    <cc>rniwa</cc>
    
    <cc>sgrekhov</cc>
    
    <cc>tasak</cc>
    
    <cc>webcomponents-bugzilla</cc>
    
    <cc>zcorpan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>772415</commentid>
    <comment_count>0</comment_count>
    <who name="Aleksei Yu. Semenov">a.semenov</who>
    <bug_when>2012-11-20 20:13:15 -0800</bug_when>
    <thetext>The specification http://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/shadow/index.html reads:
&quot;The shadow DOM allows multiple DOM trees (in addition to the document tree) to be composed into one larger tree when rendered. The existence of multiple DOM trees is enabled by letting any element in the document tree to host one or more additional DOM trees.&quot;

However elements APPLET,FIELDSET,FRAME,IFRAME,IMG,INPUT,OBJECT,SELECT,TEXTAREA are not able to host shadow tree.
Found in Chrome version 23.0.1271.64 m

Example code:

&lt;html&gt;
&lt;head&gt;
&lt;script type=&quot;text/javascript&quot;&gt;

function A_04_00_01_test(elementName) {
	var d = document;
	var SR = window.ShadowRoot || window.WebKitShadowRoot;

// create element
	var n = d.createElement(elementName);
    d.body.appendChild(n);
    try {
    	var shadowTree1 =  new SR(n);
    	d.write(&quot;&lt;P&gt;&quot;+elementName+&quot;: OK&quot;);
    } catch(e) {
        d.write(&quot;&lt;P&gt;&quot;+elementName+&quot;: &quot; + e.name + e.message);
    }

}

function test() {
 // uncomment the line you need
  A_04_00_01_test(&apos;APPLET&apos;);
  A_04_00_01_test(&apos;FIELDSET&apos;);
  A_04_00_01_test(&apos;FRAME&apos;);
  A_04_00_01_test(&apos;IFRAME&apos;);
  A_04_00_01_test(&apos;IMG&apos;);
  A_04_00_01_test(&apos;INPUT&apos;);
  A_04_00_01_test(&apos;OBJECT&apos;);
  A_04_00_01_test(&apos;SELECT&apos;);
  A_04_00_01_test(&apos;TEXTAREA&apos;);

}

&lt;/script&gt;
&lt;/head&gt;
&lt;body onload=&quot;test()&quot;&gt;

&lt;/body&gt;
&lt;/html&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>788191</commentid>
    <comment_count>1</comment_count>
    <who name="Sergey G. Grekhov">sgrekhov</who>
    <bug_when>2012-12-11 01:45:40 -0800</bug_when>
    <thetext>The list from the description is not complete. &apos;embed&apos;, &apos;video&apos;, &apos;audio&apos;, &apos;canvas&apos;, &apos;progress&apos; and &apos;meter&apos; cannot be made a Shadow root as well</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1450253</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Pieters (:zcorpan)">zcorpan</who>
    <bug_when>2018-08-15 01:05:41 -0700</bug_when>
    <thetext>https://dom.spec.whatwg.org/#dom-element-attachshadow says which elements are allowed to be shadow root in shadow DOM v1. I think this bug can thus be closed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1577156</commentid>
    <comment_count>3</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2019-10-04 22:21:52 -0700</bug_when>
    <thetext>We decided explicitly to not support this in V1 API.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>