mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-07 21:59:54 +00:00
LibWeb/HTML: Fix behavior when removing multiple from select element
This change ensures correct behavior when the `multiple` attribute is removed from a `select` element, reducing the number of selected `option` elements to one. Fixes a failing WPT test: https://wpt.live/html/semantics/forms/the-select-element/select-multiple.html
This commit is contained in:
parent
937994cfaa
commit
9a071c9e89
Notes:
github-actions[bot]
2025-05-27 06:59:29 +00:00
Author: https://github.com/khaledev
Commit: 9a071c9e89
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4882
Reviewed-by: https://github.com/shannonbooth ✅
3 changed files with 13 additions and 3 deletions
|
|
@ -2,8 +2,7 @@ Harness status: OK
|
|||
|
||||
Found 3 tests
|
||||
|
||||
2 Pass
|
||||
1 Fail
|
||||
3 Pass
|
||||
Pass multiple selected options exist, both set from markup
|
||||
Pass multiple selected options exist, one set from script
|
||||
Fail Removing multiple attribute reduces the number of selected OPTIONs to 1
|
||||
Pass Removing multiple attribute reduces the number of selected OPTIONs to 1
|
||||
Loading…
Add table
Add a link
Reference in a new issue