LibWeb: Add support for indexed setter of HTMLOptionsCollection

This commit is contained in:
Colin Reeder 2024-07-14 15:24:02 -06:00 committed by Tim Ledbetter
commit 99824eae14
Notes: sideshowbarker 2024-07-17 08:25:15 +09:00
6 changed files with 70 additions and 0 deletions

View file

@ -0,0 +1,7 @@
<link rel="match" href="reference/options-set-index.html" />
<select id="select"></select>
<script>
const select = document.getElementById("select");
select.options[0] = new Option("text");
select.value = "text";
</script>

View file

@ -0,0 +1 @@
<select><option>text</option></select>