Bug 1858247 [wpt PR 42465] - Add AttributePart imperative API support, a=testonly
commit78c7204f0f727f9caae9a016372eb730e8bc265a
authorMason Freed <masonf@chromium.org>
Wed, 18 Oct 2023 09:21:07 +0000 (18 09:21 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Thu, 26 Oct 2023 08:58:14 +0000 (26 08:58 +0000)
tree0a9c5cafa519906fb81111f82be6f6cb684ac745
parent323c9fdd36acdf8de44cfad3473ceed5addbb028
Bug 1858247 [wpt PR 42465] - Add AttributePart imperative API support, a=testonly

Automatic update from web-platform-tests
Add AttributePart imperative API support

See the explainer [1] for details, but this is the start of adding
AttributePart support. This CL adds imperative support for constructing
an AttributePart:

  new AttributePart(root,target,localName,automatic,options);

For now, only HTML namespace attributes are supported, as there aren't
prefix or namespaceURI parameters. The `automatic` parameter controls
whether or not the new Part is listed in the return value for
getParts(). (Automatic parts are not returned.)

[1] https://docs.google.com/document/d/1z0YCj06-LFTWJlR_ayhtCOV2O4cJ5W1fHZbfckFsOdU/edit

Bug: 1453291
Change-Id: Ib1f4b31b282f707280fb9da1208c8ea3e3e08f03
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4927874
Reviewed-by: Joey Arhar <jarhar@chromium.org>
Commit-Queue: Mason Freed <masonf@chromium.org>
Auto-Submit: Mason Freed <masonf@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1209163}

--

wpt-commits: fe313fe119f937541d206d1a83e1aabef18a108b
wpt-pr: 42465
testing/web-platform/tests/dom/parts/basic-dom-part-objects.tentative.html