Update HTMLFormElement.length to be of type unsigned long

Fixes #9402
This commit is contained in:
Joshua Holmer 2016-01-22 10:12:16 -05:00
parent 1c6fb0f04e
commit 75d258f866
3 changed files with 4 additions and 4 deletions

View file

@ -205,8 +205,8 @@ impl HTMLFormElementMethods for HTMLFormElement {
}
// https://html.spec.whatwg.org/multipage/#dom-form-length
fn Length(&self) -> i32 {
self.Elements().Length() as i32
fn Length(&self) -> u32 {
self.Elements().Length() as u32
}
}

View file

@ -17,7 +17,7 @@ interface HTMLFormElement : HTMLElement {
attribute DOMString target;
[SameObject] readonly attribute HTMLFormControlsCollection elements;
readonly attribute long length;
readonly attribute unsigned long length;
//getter Element (unsigned long index);
//getter (RadioNodeList or Element) (DOMString name);

View file

@ -1591,7 +1591,7 @@ interface HTMLFormElement : HTMLElement {
attribute DOMString target;
readonly attribute HTMLFormControlsCollection elements;
readonly attribute long length;
readonly attribute unsigned long length;
getter Element (unsigned long index);
getter (RadioNodeList or Element) (DOMString name);