[Webkit-unassigned] [Bug 68574] New: adoptNode does not work with shadow dom

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Sep 21 14:55:52 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=68574

           Summary: adoptNode does not work with shadow dom
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
               URL: http://plexode.com/eval3/#ht=%3Cdiv%20id%3Dx%3E%3C%2Fd
                    iv%3E&ohh=1&ohj=1&jt=var%20d%20%3D%20document.implemen
                    tation.createHTMLDocument('')%3B%0Avar%20a%20%3D%20d.b
                    ody.appendChild(d.createElement('audio'))%3B%0Avar%20a
                    2%20%3D%20d.body.appendChild(d.createElement('audio'))
                    %3B%0Avar%20a3%20%3D%20d.body.appendChild(d.createElem
                    ent('audio'))%3B%0Aa.src%20%3D%20'http%3A%2F%2Fapm.irc
                    am.fr%2Fmedia%2Fresources%2Faudio%2FStreicherKreis_BAS
                    CHET_extract.ogg'%0Aa2.src%20%3D%20'http%3A%2F%2Fapm.i
                    rcam.fr%2Fmedia%2Fresources%2Faudio%2FStreicherKreis_B
                    ASCHET_extract.ogg'%0Aa3.src%20%3D%20'http%3A%2F%2Fapm
                    .ircam.fr%2Fmedia%2Fresources%2Faudio%2FStreicherKreis
                    _BASCHET_extract.ogg'%0Aa.controls%20%3D%20true%3B%0Aa
                    2.controls%20%3D%20true%3B%0Aa3.controls%20%3D%20true%
                    3B%0Ax.appendChild(a)%0Ax.appendChild(document.adoptNo
                    de(a2))%0Ax.appendChild(document.importNode(a2))&ojh=1
                    &ojj=1&ms=100&oth=0&otj=0&cex=1
        OS/Version: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: HTML DOM
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: arv at chromium.org
                CC: dglazkov at chromium.org


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.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list