mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 04:39:06 +00:00
LibWeb: Update the select element's text when setting the selected index
We were updating the IDL values, but the rendered text would remain on the previously selected value.
This commit is contained in:
parent
9b6ae962d0
commit
206ec6694c
Notes:
github-actions[bot]
2025-03-22 16:29:20 +00:00
Author: https://github.com/trflynn89
Commit: 206ec6694c
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4036
3 changed files with 37 additions and 0 deletions
|
@ -0,0 +1,8 @@
|
|||
<!DOCTYPE html>
|
||||
<select id="select">
|
||||
<option>Value 0</option>
|
||||
<option>Value 1</option>
|
||||
</select>
|
||||
<script>
|
||||
select.selectedIndex = 1;
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue