mirror of
https://github.com/RGBCube/serenity
synced 2025-05-18 08:45:06 +00:00

We would previously not return a RadioNodeList in the curious case where a named item resolves to two different elements within the form. This was not a problem when calling namedItem directly in the IDL as named_item_or_radio_node_list shadows named_item but is exposed when calling the property through array bracket notation (as an example). Fix this, and add a bunch more tests to cover HTMLFormControlsCollection.
87 lines
1.2 KiB
Text
87 lines
1.2 KiB
Text
HTMLFormControlsCollection
|
|
2
|
|
-------------------
|
|
form.namedItem("formcontrol")
|
|
-------------------
|
|
RadioNodeList
|
|
2
|
|
button
|
|
text
|
|
-------------------
|
|
form.namedItem("one")
|
|
-------------------
|
|
HTMLInputElement
|
|
formcontrol
|
|
button
|
|
-------------------
|
|
form.namedItem("two")
|
|
-------------------
|
|
HTMLInputElement
|
|
formcontrol
|
|
text
|
|
-------------------
|
|
form.namedItem("nomatch")
|
|
-------------------
|
|
null
|
|
-------------------
|
|
form["formcontrol"]
|
|
-------------------
|
|
RadioNodeList
|
|
2
|
|
button
|
|
text
|
|
-------------------
|
|
form["one"]
|
|
-------------------
|
|
HTMLInputElement
|
|
formcontrol
|
|
button
|
|
-------------------
|
|
form["two"]
|
|
-------------------
|
|
HTMLInputElement
|
|
formcontrol
|
|
text
|
|
-------------------
|
|
form["nomatch"]
|
|
-------------------
|
|
undefined
|
|
-------------------
|
|
form.formcontrol
|
|
-------------------
|
|
RadioNodeList
|
|
2
|
|
button
|
|
text
|
|
-------------------
|
|
form.one
|
|
-------------------
|
|
HTMLInputElement
|
|
formcontrol
|
|
button
|
|
-------------------
|
|
form.two
|
|
-------------------
|
|
HTMLInputElement
|
|
formcontrol
|
|
text
|
|
-------------------
|
|
form.nomatch
|
|
-------------------
|
|
undefined
|
|
-------------------
|
|
form[0]
|
|
-------------------
|
|
HTMLInputElement
|
|
formcontrol
|
|
button
|
|
-------------------
|
|
form[1]
|
|
-------------------
|
|
HTMLInputElement
|
|
formcontrol
|
|
text
|
|
-------------------
|
|
form[2]
|
|
-------------------
|
|
undefined
|