mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-11 20:16:02 +00:00
LibWeb: Add support for indexed setter of HTMLOptionsCollection
This commit is contained in:
parent
2c918b540d
commit
99824eae14
Notes:
sideshowbarker
2024-07-17 08:25:15 +09:00
Author: https://github.com/vpzomtrrfrt
Commit: 99824eae14
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/630
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/tcl3 ✅
6 changed files with 70 additions and 0 deletions
7
Tests/LibWeb/Ref/options-set-index.html
Normal file
7
Tests/LibWeb/Ref/options-set-index.html
Normal 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>
|
1
Tests/LibWeb/Ref/reference/options-set-index.html
Normal file
1
Tests/LibWeb/Ref/reference/options-set-index.html
Normal file
|
@ -0,0 +1 @@
|
|||
<select><option>text</option></select>
|
Loading…
Add table
Add a link
Reference in a new issue