Closed Bug 1938060 Opened 2 months ago Closed 2 months ago

[wpt-sync] Sync PR 49758 - DOM: Move moveBefore() returns undefined

Categories

(Core :: DOM: Core & HTML, task, P4)

task

Tracking

()

RESOLVED FIXED
135 Branch
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.

R=nrosenthal@chromium.org

Bug: 40150299
Change-Id: I50aeafb913abb4b63480be4532254f367abf37b7
Reviewed-on: https://chromium-review.googlesource.com/6097561
WPT-Export-Revision: 57b7a2050d7f5ecf13cb3976fc63d96e0d4c2fee

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core

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

GitHub PR Head
GitHub PR Base

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)
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7345177f4c7b [wpt PR 49758] - DOM: Move moveBefore() returns undefined, a=testonly https://hg.mozilla.org/integration/autoland/rev/fafc78a7efc0 [wpt PR 49758] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 135 Branch
You need to log in before you can comment on or make changes to this bug.