Implement HTMLFormElement::Elements

Fixes #8566
This commit is contained in:
Corey Farwell 2016-01-09 13:10:26 -05:00
parent 6d49681c79
commit bff8947e43
14 changed files with 142 additions and 68 deletions

View file

@ -1365,15 +1365,6 @@
[HTMLFormControlsCollection interface: existence and properties of interface object]
expected: FAIL
[HTMLFormControlsCollection interface object length]
expected: FAIL
[HTMLFormControlsCollection interface: existence and properties of interface prototype object]
expected: FAIL
[HTMLFormControlsCollection interface: existence and properties of interface prototype object's "constructor" property]
expected: FAIL
[HTMLFormControlsCollection interface: operation namedItem(DOMString)]
expected: FAIL
@ -4767,9 +4758,6 @@
[HTMLFormElement interface: existence and properties of interface object]
expected: FAIL
[HTMLFormElement interface: attribute elements]
expected: FAIL
[HTMLFormElement interface: attribute length]
expected: FAIL
@ -4782,9 +4770,6 @@
[HTMLFormElement interface: operation requestAutocomplete()]
expected: FAIL
[HTMLFormElement interface: document.createElement("form") must inherit property "elements" with the proper type (9)]
expected: FAIL
[HTMLFormElement interface: document.createElement("form") must inherit property "length" with the proper type (10)]
expected: FAIL
@ -9243,9 +9228,6 @@
[HTMLAllCollection interface object name]
expected: FAIL
[HTMLFormControlsCollection interface object name]
expected: FAIL
[RadioNodeList interface object name]
expected: FAIL

View file

@ -3,33 +3,12 @@
[The length attribute must return the number of elements in the form]
expected: FAIL
[HTMLFormControlsCollection.item(index) must return the indexed item]
expected: FAIL
[HTMLFormControlsCollection[index\] must return the indexed item]
expected: FAIL
[HTMLFormControlsCollection(name) must return the named item]
expected: FAIL
[HTMLFormControlsCollection[name\] must return the named item]
expected: FAIL
[HTMLFormControlsCollection.namedItem(name) must return the named item]
expected: FAIL
[The namedItem(name) must return an Element]
expected: FAIL
[The namedItem(name) must return RadioNodeList]
expected: FAIL
[The namedItem(name) must return null if the name is empty]
expected: FAIL
[The namedItem(name) must return null if there is no matched element]
expected: FAIL
[Controls can be indexed by id or name attribute]
expected: FAIL
@ -38,7 +17,3 @@
[The HTMLFormControlsCollection interface is used for collections of listed elements in form element]
expected: FAIL
[The controls in the form element must be sorted in tree order]
expected: FAIL

View file

@ -1,6 +1,5 @@
[radionodelist.html]
type: testharness
expected: ERROR
[The value attribute should be empty if no element is checked]
expected: FAIL

View file

@ -1,6 +1,5 @@
[form-validation-validate.html]
type: testharness
expected: ERROR
[If there is any invalid submittable element whose form owner is the form, the form.checkValidity must be false]
expected: FAIL

View file

@ -1,8 +0,0 @@
[form-elements-interfaces-01.html]
type: testharness
[Testing interface HTMLFormControlsCollection]
expected: FAIL
[Testing interface HTMLCollection]
expected: FAIL

View file

@ -1,8 +0,0 @@
[form-elements-matches.html]
type: testharness
[input type=image should not be present in the form.elements collection]
expected: FAIL
[form.elements should include elements whose name starts with a number]
expected: FAIL

View file

@ -1,5 +0,0 @@
[form-elements-nameditem-02.html]
type: testharness
[form.elements should work correctly in the face of table syntax errors]
expected: FAIL

View file

@ -125,6 +125,7 @@ var interfaceNamesInGlobalScope = [
"HTMLEmbedElement",
"HTMLFieldSetElement",
"HTMLFontElement",
"HTMLFormControlsCollection",
"HTMLFormElement",
"HTMLFrameElement",
"HTMLFrameSetElement",