mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00: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)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue