mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2026-04-19 18:30:27 +00:00
LibWeb: Add HTMLSelectedContentElement for customizable select
Introduce the HTMLSelectedContentElement and integrate it into <select>, <option> and HTMLParser. See whatwg/html#10548. There are two bugs with WPT tests which causes the third subtest in selectedcontent.html and selectedcontent-mutations.html fail. See whatwg/html#11882, web-platform-tests/wpt#55849.
This commit is contained in:
parent
89d50befb0
commit
b58fcaeecf
Notes:
github-actions[bot]
2025-12-12 12:07:51 +00:00
Author: https://github.com/F3n67u
Commit: b58fcaeecf
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/7024
Reviewed-by: https://github.com/AtkinsSJ ✅
25 changed files with 945 additions and 205 deletions
|
|
@ -186,9 +186,9 @@ WebIDL::Long HTMLOptionsCollection::selected_index() const
|
|||
return as<HTMLSelectElement>(*root()).selected_index();
|
||||
}
|
||||
|
||||
void HTMLOptionsCollection::set_selected_index(WebIDL::Long index)
|
||||
WebIDL::ExceptionOr<void> HTMLOptionsCollection::set_selected_index(WebIDL::Long index)
|
||||
{
|
||||
as<HTMLSelectElement>(*root()).set_selected_index(index);
|
||||
return as<HTMLSelectElement>(*root()).set_selected_index(index);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue