Auto merge of #9407 - KiChjang:radio-node-list, r=nox

Implement RadioNodeList

I also had to implement the NamedGetter for HTMLFormControlsCollection as well, since that's the only consumer of RadioNodeList and I wanted to see which wpt test passes.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9407)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2016-01-29 14:04:16 +05:30
commit 0c5591a8ec
12 changed files with 178 additions and 60 deletions

View file

@ -1359,9 +1359,6 @@
[HTMLCollection interface: calling namedItem(DOMString) on document.all with too few arguments must throw TypeError]
expected: FAIL
[HTMLFormControlsCollection interface: operation namedItem(DOMString)]
expected: FAIL
[HTMLFormControlsCollection must be primary interface of document.createElement("form").elements]
expected: FAIL
@ -1389,21 +1386,6 @@
[HTMLCollection interface: calling namedItem(DOMString) on document.createElement("form").elements with too few arguments must throw TypeError]
expected: FAIL
[RadioNodeList interface: existence and properties of interface object]
expected: FAIL
[RadioNodeList interface object length]
expected: FAIL
[RadioNodeList interface: existence and properties of interface prototype object]
expected: FAIL
[RadioNodeList interface: existence and properties of interface prototype object's "constructor" property]
expected: FAIL
[RadioNodeList interface: attribute value]
expected: FAIL
[HTMLOptionsCollection interface: existence and properties of interface object]
expected: FAIL
@ -8934,9 +8916,6 @@
[HTMLAllCollection interface object name]
expected: FAIL
[RadioNodeList interface object name]
expected: FAIL
[HTMLOptionsCollection interface object name]
expected: FAIL

View file

@ -6,15 +6,9 @@
[HTMLFormControlsCollection(name) must return the named item]
expected: FAIL
[The namedItem(name) must return RadioNodeList]
expected: FAIL
[Controls can be indexed by id or name attribute]
expected: FAIL
[The namedItem(name) must return the items with id or name attribute]
expected: FAIL
[The HTMLFormControlsCollection interface is used for collections of listed elements in form element]
expected: FAIL

View file

@ -1,17 +1,5 @@
[radionodelist.html]
type: testharness
[The value attribute should be empty if no element is checked]
expected: FAIL
[The RadioNodeList.value must be the first checked radio button's value]
expected: FAIL
[Check the RadioNodeList.value on getting]
expected: FAIL
[Check the RadioNodeList.value on setting]
expected: FAIL
[Check the RadioNodeList.value on setting to 'on']
expected: FAIL

View file

@ -1,8 +1,5 @@
[form-elements-nameditem-01.html]
type: testharness
[RadioNodeList should exist]
expected: FAIL
[elements collection should return elements or RadioNodeLists]
expected: FAIL

View file

@ -193,6 +193,7 @@ var interfaceNamesInGlobalScope = [
"PerformanceTiming",
"ProcessingInstruction",
"ProgressEvent",
"RadioNodeList",
"Range",
"Screen",
"Storage",