LibWeb: Add support for indexed setter of HTMLOptionsCollection

This commit is contained in:
Colin Reeder 2024-07-14 15:24:02 -06:00 committed by Tim Ledbetter
parent 2c918b540d
commit 99824eae14
Notes: sideshowbarker 2024-07-17 08:25:15 +09:00
6 changed files with 70 additions and 0 deletions

View file

@ -24,6 +24,8 @@ public:
[[nodiscard]] static JS::NonnullGCPtr<HTMLOptionsCollection> create(DOM::ParentNode& root, ESCAPING Function<bool(DOM::Element const&)> filter);
virtual ~HTMLOptionsCollection() override;
WebIDL::ExceptionOr<void> set_value_of_indexed_property(u32, JS::Value) override;
WebIDL::ExceptionOr<void> set_length(WebIDL::UnsignedLong);
WebIDL::ExceptionOr<void> add(HTMLOptionOrOptGroupElement element, Optional<HTMLElementOrElementIndex> before = {});