1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 05:48:12 +00:00

LibWeb: Implement HTMLSelectElement length, item() and namedItem()

These are simple calls through to the HTMLOptionsCollection functions
the same names, as with HTMLSelectElement.add().
This commit is contained in:
Zaggy1024 2022-10-18 03:22:55 -05:00 committed by Andreas Kling
parent 2547e0b966
commit f0420def78
3 changed files with 27 additions and 0 deletions

View file

@ -25,6 +25,9 @@ public:
JS::GCPtr<HTMLOptionsCollection> const& options();
size_t length();
DOM::Element* item(size_t index);
DOM::Element* named_item(FlyString const& name);
WebIDL::ExceptionOr<void> add(HTMLOptionOrOptGroupElement element, Optional<HTMLElementOrElementIndex> before = {});
int selected_index() const;