LibWeb+IDLGenerators: Support nullable union types

This commit is contained in:
Luke Wilde
2026-02-17 14:57:03 +00:00
committed by Sam Atkins
parent 500ca417ce
commit cfd795f907
Notes: github-actions[bot] 2026-03-25 13:21:41 +00:00
39 changed files with 146 additions and 128 deletions

View File

@@ -45,7 +45,7 @@ public:
HTMLOptionElement* item(WebIDL::UnsignedLong index);
virtual Optional<JS::Value> item_value(size_t index) const override;
HTMLOptionElement* named_item(FlyString const& name);
WebIDL::ExceptionOr<void> add(HTMLOptionOrOptGroupElement element, Optional<HTMLElementOrElementIndex> before = {});
WebIDL::ExceptionOr<void> add(HTMLOptionOrOptGroupElement element, NullableHTMLElementOrElementIndex before = { Empty {} });
virtual WebIDL::ExceptionOr<void> set_value_of_indexed_property(u32, JS::Value) override;
void remove();
void remove(WebIDL::Long);