Bug 110810
Summary: | Node::compareDocumentPosition returns DOCUMENT_POSITION_DISCONNECTED for elements in different ShadowRoots | ||
---|---|---|---|
Product: | WebKit | Reporter: | Elliott Sprehn <esprehn> |
Component: | DOM | Assignee: | 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
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 | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Ahmad Saleem
Safari is passing all WPT tests:
https://wpt.fyi/results/dom/nodes/Node-compareDocumentPosition.html?label=master&label=experimental&aligned=
Anne - Do we need to anything here?