mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Auto merge of #9404 - shssoichiro:htmlformelementlength, r=nox
Update HTMLFormElement.length to be of type unsigned long Fixes #9402 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9404) <!-- Reviewable:end -->
This commit is contained in:
commit
a914727541
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
|
||||
fn Length(&self) -> i32 {
|
||||
self.Elements().Length() as i32
|
||||
fn Length(&self) -> u32 {
|
||||
self.Elements().Length() as u32
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue