NEW 110810
Node::compareDocumentPosition returns DOCUMENT_POSITION_DISCONNECTED for elements in different ShadowRoots
https://bugs.webkit.org/show_bug.cgi?id=110810
Summary Node::compareDocumentPosition returns DOCUMENT_POSITION_DISCONNECTED for elem...
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.