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:
parent
2547e0b966
commit
f0420def78
3 changed files with 27 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue