Repository navigation
Conversation
…ML does whatwg/html#12430 specified <selectedcontent> for <select multiple>, and WebKit clones the options at other times: - Inserting a <selectedcontent> cloned into that element only, so the other ones could stay stale, and inserting options in the same call cloned again in a microtask. Now it queues an update and performs it from its post-connection steps, as for a <select> without multiple. Options queue from their insertion steps. - While the <select> is parsed, nothing is cloned or queued. finishParsingChildren() clones once, also when the <select> isn't connected. Also hide unchecked options in the <selectedcontent> of any <select>, as HTML does. Import the upstream <selectedcontent> tests that changed. selectedcontent.html asserted that setting option.selected without changing selectedness leaves <selectedcontent> alone, which contradicts HTML; correct it here and upstream. WebKit-Bug: https://bugs.webkit.org/show_bug.cgi?id=334318
Collaborator
|
This patch has been exported from WebKit; it will be approved automatically once the downstream patch is r+. |
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.
WebKit export from bug: Clone the options of <select multiple> into <selectedcontent> when HTML does