Bug 1838966 [wpt PR 40603] - Add the ability to disconnect DOM Parts, a=testonly
commit4febe994cc3539c8eb283d31857c23706e2e1535
authorMason Freed <masonf@chromium.org>
Mon, 19 Jun 2023 20:25:05 +0000 (19 20:25 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Wed, 21 Jun 2023 14:35:35 +0000 (21 14:35 +0000)
treef4d810e58d0daf69ba5abbfc3d5ef86002a61191
parent0683eb67252a713c5fe48ffe996fb657288b50ad
Bug 1838966 [wpt PR 40603] - Add the ability to disconnect DOM Parts, a=testonly

Automatic update from web-platform-tests
Add the ability to disconnect DOM Parts

This turns out to be important, at least in the case of writing
tests. `disconnect()` is a one-way operation; there's no way to
re-connect a part to its part root.

This CL also adds the constraint that NodePart can't have child parts.
It therefore adds exceptions to the constructors for NodePart and
ChildNodePart in the case that a NodePart is supplied.

Bug: 1453291
Change-Id: Ied398c417b1e105c77a95c3836ee2d09902df7c2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4617275
Auto-Submit: Mason Freed <masonf@chromium.org>
Reviewed-by: David Baron <dbaron@chromium.org>
Commit-Queue: Mason Freed <masonf@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1159094}

--

wpt-commits: 84d8aa38655c6c1a010703fc07479108427b3a04
wpt-pr: 40603
testing/web-platform/tests/dom/parts/basic-dom-part-objects.tentative.html