1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 04:47:34 +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:
Tim Ledbetter 2024-01-29 17:52:30 +00:00 committed by Sam Atkins
parent 002eb0ad03
commit 4e383bdac1
3 changed files with 32 additions and 1 deletions

View file

@ -0,0 +1,5 @@
<!DOCTYPE html>
<select>
<option>Option 1</option>
<option selected="selected">Option 2</option>
</select>