mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Implement HTMLFormElement::Length
This commit is contained in:
parent
99d0142293
commit
f72d153c8d
4 changed files with 6 additions and 13 deletions
|
@ -195,6 +195,11 @@ impl HTMLFormElementMethods for HTMLFormElement {
|
|||
let window = window_from_node(self);
|
||||
HTMLFormControlsCollection::new(window.r(), self.upcast(), filter)
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#dom-form-length
|
||||
fn Length(&self) -> i32 {
|
||||
self.Elements().Length() as i32
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Copy, Clone, HeapSizeOf, PartialEq)]
|
||||
|
|
|
@ -17,7 +17,7 @@ interface HTMLFormElement : HTMLElement {
|
|||
attribute DOMString target;
|
||||
|
||||
[SameObject] readonly attribute HTMLFormControlsCollection elements;
|
||||
//readonly attribute long length;
|
||||
readonly attribute long length;
|
||||
//getter Element (unsigned long index);
|
||||
//getter (RadioNodeList or Element) (DOMString name);
|
||||
|
||||
|
|
|
@ -4758,9 +4758,6 @@
|
|||
[HTMLFormElement interface: existence and properties of interface object]
|
||||
expected: FAIL
|
||||
|
||||
[HTMLFormElement interface: attribute length]
|
||||
expected: FAIL
|
||||
|
||||
[HTMLFormElement interface: operation checkValidity()]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -4770,9 +4767,6 @@
|
|||
[HTMLFormElement interface: operation requestAutocomplete()]
|
||||
expected: FAIL
|
||||
|
||||
[HTMLFormElement interface: document.createElement("form") must inherit property "length" with the proper type (10)]
|
||||
expected: FAIL
|
||||
|
||||
[HTMLFormElement interface: document.createElement("form") must inherit property "checkValidity" with the proper type (15)]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -15,12 +15,6 @@
|
|||
[Named elements should override builtins]
|
||||
expected: FAIL
|
||||
|
||||
[Named items outside the form should not be returned (no children)]
|
||||
expected: FAIL
|
||||
|
||||
[Named items outside the form should not be returned (one child)]
|
||||
expected: FAIL
|
||||
|
||||
[The form attribute should be taken into account for named getters (single element)]
|
||||
expected: FAIL
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue