LibWeb: Implement the HTMLInputElement.list attribute

This returns the `HTMLDataListElement` pointed to by the `list`
content attribute.
This commit is contained in:
Tim Ledbetter 2025-03-03 15:23:48 +00:00 committed by Tim Ledbetter
commit 6178557a07
Notes: github-actions[bot] 2025-03-09 15:11:49 +00:00
7 changed files with 164 additions and 1 deletions

View file

@ -0,0 +1,11 @@
Harness status: OK
Found 6 tests
6 Pass
Pass getting .list of input must return the datalist with that id
Pass getting .list of input must return null if it has no list attribute
Pass getting .list of input must return null if the list attribute is a non-datalist's id
Pass getting .list of input must return null if the list attribute is no element's id
Pass getting .list of input must return null if the list attribute is used in a non-datalist earlier than a datalist
Pass getting .list of input must return the datalist with that id even if a later non-datalist also has the id

View file

@ -0,0 +1,7 @@
Harness status: OK
Found 2 tests
2 Pass
Pass Input element's list attribute should point to the datalist element.
Pass Input element's list attribute should point to the datalist element in Shadow DOM.