Bug 110810

Summary: Node::compareDocumentPosition returns DOCUMENT_POSITION_DISCONNECTED for elements in different ShadowRoots
Product: WebKit Reporter: Elliott Sprehn <esprehn>
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: ahmad.saleem792, annevk, dglazkov, dominicc, morrita
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   

Elliott Sprehn
Reported 2013-02-25 15:10:41 PST
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.
Attachments
Ahmad Saleem
Comment 1 2024-03-17 15:31:02 PDT
Note You need to log in before you can comment on or make changes to this bug.