[Webkit-unassigned] [Bug 110810] New: Node::compareDocumentPosition returns DOCUMENT_POSITION_DISCONNECTED for elements in different ShadowRoots

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Feb 25 15:08:18 PST 2013


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

           Summary: Node::compareDocumentPosition returns
                    DOCUMENT_POSITION_DISCONNECTED for elements in
                    different ShadowRoots
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: HTML DOM
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: esprehn at chromium.org
                CC: dglazkov at chromium.org, dominicc at chromium.org,
                    morrita at google.com


var a = document.createElement('div');
var b = document.createElement('div');
var c = document.createElement('div');

document.body.appendChild(a);
document.body.appendChild(b);
b.webkitCreateShadowRoot().appendChild(c);

a.compareDocumentPosition(c);
// == Node.DOCUMENT_POSITION_DISCONNECTED | Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC

This shouldn't be implementation specific, we need the spec to be clear of the node order for two things in different shadow (or the main) trees.

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