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:
Timothy Flynn 2025-03-20 17:25:11 -04:00 committed by Alexander Kalenik
commit 206ec6694c
Notes: github-actions[bot] 2025-03-22 16:29:20 +00:00
3 changed files with 37 additions and 0 deletions

View file

@ -0,0 +1,8 @@
<!DOCTYPE html>
<select id="select">
<option>Value 0</option>
<option>Value 1</option>
</select>
<script>
select.selectedIndex = 1;
</script>