forked from web-platform-tests/wpt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Strictly enforce exclusive semantics for <details name>.
This change thoroughly enforces that at most one <details> element in a group established by the name attribute is open at a given time. This requires that we remove the open attribute during insertion into the DOM in some cases, and also that we remove the open attribute for some mutations of the name attribute. This suppresses DOM mutation events (but not toggle events, which are asynchronous) for the removals of the open attribute that result from insertion. This is based on discussion in (among other places): openui/open-ui#786 openui/open-ui#812 Bug: 1444057 Change-Id: I91313662f6fb005b461717445a69294bcb4d1a59 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4829108 Reviewed-by: Mason Freed <masonf@chromium.org> Commit-Queue: David Baron <dbaron@chromium.org> Cr-Commit-Position: refs/heads/main@{#1195601}
- Loading branch information
1 parent
b27fc1a
commit 314d118
Showing
1 changed file
with
43 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters