mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:57:46 +00:00
LibWeb: Implement named and indexed property access for HTMLFormElement
This commit is contained in:
parent
521ed0e911
commit
b5ec520f84
7 changed files with 446 additions and 11 deletions
|
@ -0,0 +1,34 @@
|
|||
== Elements and Names ==
|
||||
formy.length: 12
|
||||
elements.length: 12
|
||||
elements[0] === form.foo
|
||||
elements[1] === form.bar
|
||||
elements[2] === form.baz
|
||||
elements[3] === form.qux
|
||||
elements[4] === form.quux
|
||||
elements[5] === form.corge
|
||||
elements[6] === form.foo2
|
||||
elements[7] === form.bar2
|
||||
elements[8] === form.baz2
|
||||
elements[9] === form.qux2
|
||||
elements[10] === form.quux2
|
||||
elements[11] === form.corge2
|
||||
== If no listed elements, picks img ==
|
||||
form.inside == image: true
|
||||
== Form association ==
|
||||
elements in form2: 2
|
||||
elements in form3: 2
|
||||
== Same name and id for many elements ==
|
||||
elements in samename: 6
|
||||
samename.a.length: 6
|
||||
typeof samename.a: object
|
||||
elements in sameid: 6
|
||||
sameid.a.length: 6
|
||||
typeof sameid.a: object
|
||||
== Changing name/id ==
|
||||
elements in changy: 1
|
||||
hello is goodbye? true
|
||||
Can we still use the same name?: true
|
||||
new hello is goodbye? false
|
||||
new hello is old hello? false
|
||||
new hello is newInput? true
|
Loading…
Add table
Add a link
Reference in a new issue