LibWeb: Add select and options collection remove method

This commit is contained in:
Bastiaan van der Plaat 2024-04-08 21:56:33 +02:00 committed by Andreas Kling
commit 7372c01786
Notes: sideshowbarker 2024-07-17 14:36:19 +09:00
8 changed files with 62 additions and 3 deletions

View file

@ -39,6 +39,8 @@ public:
DOM::Element* item(size_t index);
DOM::Element* named_item(FlyString const& name);
WebIDL::ExceptionOr<void> add(HTMLOptionOrOptGroupElement element, Optional<HTMLElementOrElementIndex> before = {});
void remove();
void remove(WebIDL::Long);
int selected_index() const;
void set_selected_index(int);