mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:18:11 +00:00
LibWeb: Support HTMLFormElement.elements and HTMLFormElement.length
Note that we implement .elements as a HTMLCollection for now, instead of the correct HTMLFormControlsCollection subclass. This covers most use-cases already. 1% progression on ACID3. :^)
This commit is contained in:
parent
fbee0490a3
commit
fa17776a51
3 changed files with 51 additions and 0 deletions
|
@ -1,3 +1,4 @@
|
|||
#import <DOM/HTMLCollection.idl>
|
||||
#import <HTML/HTMLElement.idl>
|
||||
|
||||
interface HTMLFormElement : HTMLElement {
|
||||
|
@ -9,4 +10,9 @@ interface HTMLFormElement : HTMLElement {
|
|||
|
||||
undefined submit();
|
||||
|
||||
// FIXME: Should be [SameObject] and a HTMLFormControlsCollection
|
||||
readonly attribute HTMLCollection elements;
|
||||
|
||||
readonly attribute unsigned long length;
|
||||
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue