ladybird/Tests/LibWeb/Layout/input/HTMLSelectElement-selected-index.html
Timothy Flynn 206ec6694c 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.
2025-03-22 17:27:45 +01:00

8 lines
154 B
HTML

<!DOCTYPE html>
<select id="select">
<option>Value 0</option>
<option>Value 1</option>
</select>
<script>
select.selectedIndex = 1;
</script>