[wpt-sync] Sync PR 49758 - DOM: Move moveBefore() returns undefined
Categories
(Core :: DOM: Core & HTML, task, P4)
Tracking
()
Tracking | Status | |
---|---|---|
firefox135 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 49758 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/49758
Details from upstream follow.
Dominic Farolino <dom@chromium.org> wrote:
DOM: Move moveBefore() returns undefined
See discussion in https://github.com/whatwg/dom/issues/1335.
Bug: 40150299
Change-Id: I50aeafb913abb4b63480be4532254f367abf37b7
Reviewed-on: https://chromium-review.googlesource.com/6097561
WPT-Export-Revision: 57b7a2050d7f5ecf13cb3976fc63d96e0d4c2fee
Assignee | ||
Updated•2 months ago
|
Assignee | ||
Comment 1•2 months ago
|
||
Assignee | ||
Comment 2•2 months ago
|
||
CI Results
Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 1 tests and 30 subtests
Status Summary
Firefox
OK
: 1
PASS
: 3
FAIL
: 27
Chrome
OK
: 1
PASS
: 3
FAIL
: 27
Safari
OK
: 1
PASS
: 3
FAIL
: 27
Links
Details
New Tests That Don't Pass
- /dom/nodes/moveBefore/tentative/Node-moveBefore.html [wpt.fyi]
- If node is a host-including inclusive ancestor of parent, then throw a HierarchyRequestError DOMException.:
FAIL
(Chrome:FAIL
, Safari:FAIL
) - If node is not a DocumentFragment, DocumentType, Element, Text, ProcessingInstruction, or Comment node, then throw a HierarchyRequestError DOMException.:
FAIL
(Chrome:FAIL
, Safari:FAIL
) - If node is a Text node and parent is a document, then throw a HierarchyRequestError DOMException.:
FAIL
(Chrome:FAIL
, Safari:FAIL
) - If node is a doctype and parent is not a document, then throw a HierarchyRequestError DOMException.:
FAIL
(Chrome:FAIL
, Safari:FAIL
) - If node is a DocumentFragment with multiple elements and parent is a document, then throw a HierarchyRequestError DOMException.:
FAIL
(Chrome:FAIL
, Safari:FAIL
) - If node is a DocumentFragment with an element and parent is a document with another element, then throw a HierarchyRequestError DOMException.:
FAIL
(Chrome:FAIL
, Safari:FAIL
) - If node is an Element and parent is a document with another element, then throw a HierarchyRequestError DOMException.:
FAIL
(Chrome:FAIL
, Safari:FAIL
) - If node is a doctype and parent is a document with another doctype, then throw a HierarchyRequestError DOMException.:
FAIL
(Chrome:FAIL
, Safari:FAIL
) - If node is a doctype and parent is a document with an element, then throw a HierarchyRequestError DOMException.:
FAIL
(Chrome:FAIL
, Safari:FAIL
) - moveBefore() on disconnected parent throws a HierarchyRequestError:
FAIL
(Chrome:FAIL
, Safari:FAIL
) - moveBefore() with disconnected target node throws a HierarchyRequestError:
FAIL
(Chrome:FAIL
, Safari:FAIL
) - moveBefore() on a cross-document target node throws a HierarchyRequestError:
FAIL
(Chrome:FAIL
, Safari:FAIL
) - moveBefore() into a Document throws a HierarchyRequestError:
FAIL
(Chrome:FAIL
, Safari:FAIL
) - moveBefore() CharacterData into a Document:
FAIL
(Chrome:FAIL
, Safari:FAIL
) - moveBefore() with node being an inclusive ancestor of parent throws a HierarchyRequestError:
FAIL
(Chrome:FAIL
, Safari:FAIL
) - moveBefore() with a non-{Element, CharacterData} throws a HierarchyRequestError:
FAIL
(Chrome:FAIL
, Safari:FAIL
) - moveBefore with an Element or CharacterData succeeds:
FAIL
(Chrome:FAIL
, Safari:FAIL
) - moveBefore on a paragraph's Text node child:
FAIL
(Chrome:FAIL
, Safari:FAIL
) - moveBefore with reference child whose parent is NOT the destination parent (context node) throws a NotFoundError.:
FAIL
(Chrome:FAIL
, Safari:FAIL
) - moveBefore() returns undefined:
FAIL
(Chrome:FAIL
, Safari:FAIL
) - Moving a node before itself should not move the node:
FAIL
(Chrome:FAIL
, Safari:FAIL
) - Moving a node from a disconnected container to a disconnected new parent without a shared ancestor throws a HIERARCHY_REQUEST_ERR:
FAIL
(Chrome:FAIL
, Safari:FAIL
) - Moving a node from a disconnected container to a disconnected new parent in the same tree succeeds:
FAIL
(Chrome:FAIL
, Safari:FAIL
) - Moving a node from a disconnected container to a disconnected new parent in the same tree succeeds,also across shadow-roots:
FAIL
(Chrome:FAIL
, Safari:FAIL
) - Moving a node from disconnected->connected throws a HIERARCHY_REQUEST_ERR:
FAIL
(Chrome:FAIL
, Safari:FAIL
) - Moving a node from connected->disconnected throws a HIERARCHY_REQUEST_ERR:
FAIL
(Chrome:FAIL
, Safari:FAIL
) - No custom element callbacks are run during disconnected moveBefore():
FAIL
(Chrome:FAIL
, Safari:FAIL
)
- If node is a host-including inclusive ancestor of parent, then throw a HierarchyRequestError DOMException.:
Comment 4•2 months ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/7345177f4c7b
https://hg.mozilla.org/mozilla-central/rev/fafc78a7efc0
Description
•