mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
parent
1c6fb0f04e
commit
75d258f866
3 changed files with 4 additions and 4 deletions
|
@ -205,8 +205,8 @@ impl HTMLFormElementMethods for HTMLFormElement {
|
||||||
}
|
}
|
||||||
|
|
||||||
// https://html.spec.whatwg.org/multipage/#dom-form-length
|
// https://html.spec.whatwg.org/multipage/#dom-form-length
|
||||||
fn Length(&self) -> i32 {
|
fn Length(&self) -> u32 {
|
||||||
self.Elements().Length() as i32
|
self.Elements().Length() as u32
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@ interface HTMLFormElement : HTMLElement {
|
||||||
attribute DOMString target;
|
attribute DOMString target;
|
||||||
|
|
||||||
[SameObject] readonly attribute HTMLFormControlsCollection elements;
|
[SameObject] readonly attribute HTMLFormControlsCollection elements;
|
||||||
readonly attribute long length;
|
readonly attribute unsigned long length;
|
||||||
//getter Element (unsigned long index);
|
//getter Element (unsigned long index);
|
||||||
//getter (RadioNodeList or Element) (DOMString name);
|
//getter (RadioNodeList or Element) (DOMString name);
|
||||||
|
|
||||||
|
|
|
@ -1591,7 +1591,7 @@ interface HTMLFormElement : HTMLElement {
|
||||||
attribute DOMString target;
|
attribute DOMString target;
|
||||||
|
|
||||||
readonly attribute HTMLFormControlsCollection elements;
|
readonly attribute HTMLFormControlsCollection elements;
|
||||||
readonly attribute long length;
|
readonly attribute unsigned long length;
|
||||||
getter Element (unsigned long index);
|
getter Element (unsigned long index);
|
||||||
getter (RadioNodeList or Element) (DOMString name);
|
getter (RadioNodeList or Element) (DOMString name);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue