<?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>68574</bug_id>
          
          <creation_ts>2011-09-21 14:55:53 -0700</creation_ts>
          <short_desc>adoptNode does not work with shadow dom</short_desc>
          <delta_ts>2022-08-01 21:10:25 -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>DUPLICATE</resolution>
          <dup_id>222657</dup_id>
          
          <bug_file_loc>http://plexode.com/eval3/#ht=%3Cdiv%20id%3Dx%3E%3C%2Fdiv%3E&amp;ohh=1&amp;ohj=1&amp;jt=var%20d%20%3D%20document.implementation.createHTMLDocument(&apos;&apos;)%3B%0Avar%20a%20%3D%20d.body.appendChild(d.createElement(&apos;audio&apos;))%3B%0Avar%20a2%20%3D%20d.body.appendChild(d.createElement(&apos;audio&apos;))%3B%0Avar%20a3%20%3D%20d.body.appendChild(d.createElement(&apos;audio&apos;))%3B%0Aa.src%20%3D%20&apos;http%3A%2F%2Fapm.ircam.fr%2Fmedia%2Fresources%2Faudio%2FStreicherKreis_BASCHET_extract.ogg&apos;%0Aa2.src%20%3D%20&apos;http%3A%2F%2Fapm.ircam.fr%2Fmedia%2Fresources%2Faudio%2FStreicherKreis_BASCHET_extract.ogg&apos;%0Aa3.src%20%3D%20&apos;http%3A%2F%2Fapm.ircam.fr%2Fmedia%2Fresources%2Faudio%2FStreicherKreis_BASCHET_extract.ogg&apos;%0Aa.controls%20%3D%20true%3B%0Aa2.controls%20%3D%20true%3B%0Aa3.controls%20%3D%20true%3B%0Avar%20x%20%3D%20document.getElementById(&apos;x&apos;)%3B%0Ax.appendChild(a)%0Ax.appendChild(document.adoptNode(a2))%0Ax.appendChild(document.importNode(a3))&amp;ojh=1&amp;ojj=1&amp;ms=100&amp;oth=0&amp;otj=0&amp;cex=1</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="Erik Arvidsson">arv</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>ap</cc>
    
    <cc>bfulgham</cc>
    
    <cc>dglazkov</cc>
    
    <cc>rniwa</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>471180</commentid>
    <comment_count>0</comment_count>
    <who name="Erik Arvidsson">arv</who>
    <bug_when>2011-09-21 14:55:53 -0700</bug_when>
    <thetext>My test case uses an audio element created in a different HTMLDocument. When I append it to the current document (with or without adoptNode) the shadow is not created. If I on the other hand do an importNode (which creates a new element) it all works. See URL for test case.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1888186</commentid>
    <comment_count>1</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-08-01 13:47:49 -0700</bug_when>
    <thetext>If I understand this correctly, I am able to reproduce this behavior in Safari 15.6 on macOS 12.5 using attached test case in URL field. In Safari, there is only one &quot;Media&quot; element or player while all other browsers (Chrome Canary 106 and Firefox Nightly 105) show three similar to JS showing three audio sources.

I am not sure but I think this is what this bug is for, it could be duplicate of some other bug explaining that Safari is not able to handle multiple audio sources or not. But just wanted to share latest testing results. Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1888298</commentid>
    <comment_count>2</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2022-08-01 21:10:25 -0700</bug_when>
    <thetext>Reverse duping this to the bug 222657 since it has more context.

*** This bug has been marked as a duplicate of bug 222657 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>