Closed Bug 1937606 Opened 2 months ago Closed 2 months ago

[wpt-sync] Sync PR 49710 - DOM: Move moveBefore() to the ParentNode mixin

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 49710 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/49710
Details from upstream follow.

Dominic Farolino <dom@chromium.org> wrote:

DOM: Move moveBefore() to the ParentNode mixin

R=nrosenthal@chromium.org

Bug: 40150299
Change-Id: Ie200e191847627d384cd90b4b2c399cd75e12c3b
Reviewed-on: https://chromium-review.googlesource.com/6097560
WPT-Export-Revision: 3fd177fcc4a2a1c84b9c0b37e69060f0dea1bf03

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 2 tests and 29 subtests

Status Summary

Firefox

OK : 2
PASS: 48
FAIL: 27

Chrome

OK : 2
PASS: 48
FAIL: 27

Safari

OK : 2
PASS: 48
FAIL: 27

Links

GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

  • /custom-elements/CustomElementRegistry.html [wpt.fyi]
    • customElements.define must get "observedAttributes" property on the constructor prototype when "attributeChangedCallback" is present: FAIL (Chrome: FAIL, Safari: FAIL)
  • /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)
    • Inserting 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/59a442f29461 [wpt PR 49710] - DOM: Move moveBefore() to the ParentNode mixin, 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.