mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:37:35 +00:00
LibWeb: Add stub implementation of HTMLOptionsCollection
This is a subtype of `DOM::HTMLCollection` that only holds `HTMLOptionElement`s. In this stub implementation only `item`, `namedItem` and `length`, inherited from HTMLCollection, are exposed. This is good enough for applications that only read the collection.
This commit is contained in:
parent
6f4dde253f
commit
624527f15e
6 changed files with 67 additions and 0 deletions
|
@ -159,6 +159,8 @@
|
|||
#include <LibWeb/Bindings/HTMLOptGroupElementPrototype.h>
|
||||
#include <LibWeb/Bindings/HTMLOptionElementConstructor.h>
|
||||
#include <LibWeb/Bindings/HTMLOptionElementPrototype.h>
|
||||
#include <LibWeb/Bindings/HTMLOptionsCollectionConstructor.h>
|
||||
#include <LibWeb/Bindings/HTMLOptionsCollectionPrototype.h>
|
||||
#include <LibWeb/Bindings/HTMLOutputElementConstructor.h>
|
||||
#include <LibWeb/Bindings/HTMLOutputElementPrototype.h>
|
||||
#include <LibWeb/Bindings/HTMLParagraphElementConstructor.h>
|
||||
|
@ -407,6 +409,7 @@
|
|||
ADD_WINDOW_OBJECT_INTERFACE(HTMLOListElement) \
|
||||
ADD_WINDOW_OBJECT_INTERFACE(HTMLOptGroupElement) \
|
||||
ADD_WINDOW_OBJECT_INTERFACE(HTMLOptionElement) \
|
||||
ADD_WINDOW_OBJECT_INTERFACE(HTMLOptionsCollection) \
|
||||
ADD_WINDOW_OBJECT_INTERFACE(HTMLOutputElement) \
|
||||
ADD_WINDOW_OBJECT_INTERFACE(HTMLParagraphElement) \
|
||||
ADD_WINDOW_OBJECT_INTERFACE(HTMLParamElement) \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue