<?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>19919</bug_id>
          
          <creation_ts>2012-11-09 14:14:10 +0000</creation_ts>
          <short_desc>[Shadow]: iframes as shadow hosts: bugs in chrome v23 or spec change</short_desc>
          <delta_ts>2012-11-09 17:04:36 +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>HISTORICAL - Component Model</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>18435</dup_id>
          
          <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>14978</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Mikhail Fursov">mfursov</reporter>
          <assigned_to name="Dimitri Glazkov">dglazkov</assigned_to>
          
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>78104</commentid>
    <comment_count>0</comment_count>
    <who name="Mikhail Fursov">mfursov</who>
    <bug_when>2012-11-09 14:14:10 +0000</bug_when>
    <thetext>Here is the statement:

&quot;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;

And here is the test that passes with Chrome v22 and fails with Chrome v23:



// check one or multiple shadows for more complex element (&lt;iframe&gt;)
test(function () {
    var d = newHTMLDocument();
    var n = d.createElement(&apos;iframe&apos;);

    d.body.appendChild(n);

    var s1 = new SR(n);
    assert_equals(s1.ownerDocument, d, &apos;Check1 for s1.ownerDocument value&apos;);

    var s2 = new SR(n);
    assert_equals(s2.ownerDocument, d, &apos;Check1 for s2.ownerDocument value&apos;);

    assert_equals(s1.ownerDocument, d, &apos;Check2 for s1.ownerDocument value&apos;);

}, &apos;A_04_00_01_T02&apos;, PROPS(A_04_00_01, {
    author:&apos;Mikhail Fursov &lt;mfursov@unipro.ru&gt;&apos;,
    reviewer:&apos;&apos;
}));



This either issue for spec or for chrome(webkit) v23</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78105</commentid>
    <comment_count>1</comment_count>
    <who name="Mikhail Fursov">mfursov</who>
    <bug_when>2012-11-09 14:15:59 +0000</bug_when>
    <thetext>The error text is:
[HIERARCHY_REQUEST_ERR: DOM Exception 3(stack: Error: A Node was inserted somewhere it doesn&apos;t belong. at Object.PROPS.author 

and the error is produced by  var s1 = new SR(n); when n is a iframe node</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78106</commentid>
    <comment_count>2</comment_count>
    <who name="Mikhail Fursov">mfursov</who>
    <bug_when>2012-11-09 14:20:27 +0000</bug_when>
    <thetext>The error message looks strange and unrelated, however test syntax is correct and passes with the following minor mod: (&apos;new SR(n)&apos; commented)

// check one or multiple shadows for more complex element (&lt;iframe&gt;)
test(function () {
    var d = newHTMLDocument();
    var n = d.createElement(&apos;iframe&apos;);

    d.body.appendChild(n);

    var s1 = {ownerDocument: d};//new SR(n);
    assert_equals(s1.ownerDocument, d, &apos;Check1 for s1.ownerDocument value&apos;);

    var s2 = {ownerDocument: d};//new SR(n);
    assert_equals(s2.ownerDocument, d, &apos;Check1 for s2.ownerDocument value&apos;);

    assert_equals(s1.ownerDocument, d, &apos;Check2 for s1.ownerDocument value&apos;);

}, &apos;A_04_00_01_T02&apos;, PROPS(A_04_00_01, {
    author:&apos;Mikhail Fursov &lt;mfursov@unipro.ru&gt;&apos;,
    reviewer:&apos;&apos;
}));</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78107</commentid>
    <comment_count>3</comment_count>
    <who name="Mikhail Fursov">mfursov</who>
    <bug_when>2012-11-09 14:23:52 +0000</bug_when>
    <thetext>+ if you change &apos;iframe&apos; to &apos;div&apos; in the original test, the test starts to pass.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78130</commentid>
    <comment_count>4</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2012-11-09 17:02:47 +0000</bug_when>
    <thetext>This is both a spec and an implementation issue. I need to raise this in the WG.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78131</commentid>
    <comment_count>5</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2012-11-09 17:03:46 +0000</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 18435 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78133</commentid>
    <comment_count>6</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2012-11-09 17:04:36 +0000</bug_when>
    <thetext>See https://bugs.webkit.org/show_bug.cgi?id=90859 for implementation bug.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>