Bug 1856976 [wpt PR 42335] - Update mutation event suppression for <details name...
commitf3383abcacfa450c6a18117ef2858603d53d36a3
authorL. David Baron <dbaron@chromium.org>
Wed, 18 Oct 2023 08:35:35 +0000 (18 08:35 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Thu, 26 Oct 2023 08:55:41 +0000 (26 08:55 +0000)
treecde84f840f8e3e1a02d7c89dbfdbe6a6ebeb8bea
parent2953d190ff80713400966dd49475aebe15c85351
Bug 1856976 [wpt PR 42335] - Update mutation event suppression for <details name> to revised spec rules., a=testonly

Automatic update from web-platform-tests
Update mutation event suppression for <details name> to revised spec rules.

The rules for mutation event suppression for <details name> were revised
during the process of reviewing the spec PR, based on the discussion
starting at
https://github.com/whatwg/html/pull/9400#discussion_r1340856291 .  The
updated spec says that mutation events are suppressed during the "ensure
details exclusivity by closing other elements if needed" and "ensure
details exclusivity by closing the given element if needed" algorithms.
This updates the implementation and tests to follow that rule.  (The
"handling of insertion of elements into group" test is testing the case
where the events were already suppressed.)

This also renames the test to remove "tentative" from the name, since
the spec PR is landed and the test is now (with this change) up-to-date
with the spec.

Bug: 1444057
Change-Id: I9078beeb3527f2515f6e10efbf93a94232221238
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4912273
Commit-Queue: David Baron <dbaron@chromium.org>
Reviewed-by: Joey Arhar <jarhar@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1205367}

--

wpt-commits: a4288b9d453a8c48078b3e93a58c86cf97ac3551
wpt-pr: 42335
testing/web-platform/tests/html/semantics/interactive-elements/the-details-element/name-attribute.html [moved from testing/web-platform/tests/html/semantics/interactive-elements/the-details-element/name-attribute.tentative.html with 83% similarity]