[Webkit-unassigned] [Bug 71126] New: Shadow DOM throws WRONG_DOCUMENT_ERR

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Oct 28 11:37:52 PDT 2011


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

           Summary: Shadow DOM throws WRONG_DOCUMENT_ERR
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: HTML DOM
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: ojan at chromium.org
                CC: abarth at webkit.org, dglazkov at chromium.org


We are killing WRONG_DOCUMENT_ERR across the web platform. The only places WebKit still fires this event are in DOM Ranges and in shadow DOM's validation after http://trac.webkit.org/changeset/90026. The correct thing to do if the shadowRoot's document is different than the one it's being set to is to do the adoptNode.

See ContainerNode::insertBefore for an example. I believe it's the setTreeScopeRecursively call that does it.

-- 
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