mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-15 05:52:19 +00:00
LibWeb: Set select element text when an option is initially selected
Previously, a select element's text would initially be empty if the `selected` property was set on one of its options.
This commit is contained in:
parent
002eb0ad03
commit
4e383bdac1
Notes:
sideshowbarker
2024-07-17 02:05:41 +09:00
Author: https://github.com/tcl3
Commit: 4e383bdac1
Pull-request: https://github.com/SerenityOS/serenity/pull/22993
Reviewed-by: https://github.com/AtkinsSJ ✅
3 changed files with 32 additions and 1 deletions
|
@ -0,0 +1,5 @@
|
|||
<!DOCTYPE html>
|
||||
<select>
|
||||
<option>Option 1</option>
|
||||
<option selected="selected">Option 2</option>
|
||||
</select>
|
Loading…
Add table
Add a link
Reference in a new issue