Repository navigation
Conversation
The tests only checked that no extra custom elements were constructed, so they passed in browsers that don't clone options into `selectedcontent`. Review-item: D2
wpt-pr-bot
requested review from
annevk,
foolip,
jdm,
jgraham and
tkent-google
December 4, 2026 10:16
Test `script`, SVG `script`, `frame`, `iframe`, `embed`, and `object` as children of the option and nested deeper, the options of a `select` with `multiple`, and omitted elements in template contents, which are kept. Review-item: D1
selectedcontent clones the option in omitted-subtree testsselectedcontent omitted-subtree tests
6 tasks done
Add a help link for the exclusion check, rename subtests to say they omit the elements too, rename `OMITTED` to `omitted` as in the neighboring test, wrap long lines, and simplify the helper and its comment.
This branch has not been deployed
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
selectedcontent-does-not-clone-omitted-subtrees.htmlonly checked that no extra custom elements were constructed, so it passed in browsers that don't clone options into<selectedcontent>at all, e.g. Firefox Nightly on wpt.fyi, where customizable select is disabled by default. This adds checks that the option's children, its clonable shadow tree, and the newly selected option are cloned.It also adds tests for
script, SVGscript,frame,iframe,embed, andobjectas children of the option and nested deeper, for the options of aselectwithmultiple, and for omitted elements in template contents, which are kept.For whatwg/html#13320.