-
Notifications
You must be signed in to change notification settings - Fork 3.8k
selectedcontent element mutation record test is wrong #55849
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -301,14 +301,14 @@ | |
| "Type: childList | Target: selectedcontent | Added: [#text: \"\"] | After: selectedcontent", | ||
| "Type: childList | Target: button | Added: [#text: \"\"] | After: selectedcontent", | ||
| "Type: childList | Target: button | Added: [selectedcontent] | After: #text: \"\"", | ||
| "Type: childList | Target: selectedcontent | Removed: [#text: \"outer1\", selectedcontent, #text: \"\"]", | ||
| "Type: childList | Target: selectedcontent | Added: [#text: \"outer2\"]", | ||
| "Type: childList | Target: selectedcontent | Added: [selectedcontent] | After: #text: \"outer2\"", | ||
| "Type: childList | Target: selectedcontent | Added: [#text: \"inner2\"]", | ||
| "Type: childList | Target: selectedcontent | Added: [#text: \"\"] | After: selectedcontent", | ||
| "Type: childList | Target: button | Added: [#text: \"\"] | After: selectedcontent", | ||
| "Type: childList | Target: select | Added: [#text: \"\"] | After: button", | ||
| "Type: childList | Target: select | Added: [option] | After: #text: \"\"", | ||
| "Type: childList | Target: selectedcontent | Removed: [#text: \"outer1\", selectedcontent, #text: \"\"]", | ||
| "Type: childList | Target: option | Added: [#text: \"option\"]", | ||
| "Type: childList | Target: selectedcontent | Added: [#text: \"option\"]", | ||
| "Type: childList | Target: select | Added: [#text: \"\"] | After: option", | ||
|
|
@@ -347,9 +347,8 @@ | |
| "Type: childList | Target: select | Added: [div] | After: #text: \"\"", | ||
| "Type: childList | Target: div | Added: [#text: \"\"]", | ||
| "Type: childList | Target: div | Added: [option] | After: #text: \"\"", | ||
| "Type: childList | Target: selectedcontent | Removed: [#text: \"one\"]", | ||
| "Type: childList | Target: option | Added: [#text: \"two\"]", | ||
| "Type: childList | Target: selectedcontent | Added: [#text: \"two\"]", | ||
| "Type: childList | Target: selectedcontent | Added: [#text: \"two\"] | Removed: [#text: \"one\"]", | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think this change should be necessary after whatwg/html#11890 but if you want to wait for that PR to be merged first then that's ok
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not entirely sure that is the approach we want. Less mutations seems better. WebKit has a single code path for selecting an option
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In the interest of keeping things moving, I think we can merge this. I think this test will be significantly rebaselined after we make every selectedcontent element stay updated, so I anticipate we may revisit this later. |
||
| "Type: childList | Target: div | Added: [#text: \"\"] | After: option", | ||
| "Type: childList | Target: select | Added: [#text: \"\"] | After: div", | ||
| "Type: childList | Target: div#test4 | Added: [#text: \"\"] | After: select" | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moving this "outer1" up matches my expectations: https://chromium-review.googlesource.com/c/chromium/src/+/7127725/11/third_party/blink/web_tests/external/wpt/html/semantics/forms/the-select-element/customizable-select/selectedcontent-mutations.html