WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
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
Add attachment
proposed patch, testcase, etc.
Ahmad Saleem
Comment 1
2024-03-17 15:31:02 PDT
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?
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug