diff options
Diffstat (limited to 'components/script/dom/htmlformcontrolscollection.rs')
-rw-r--r-- | components/script/dom/htmlformcontrolscollection.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/components/script/dom/htmlformcontrolscollection.rs b/components/script/dom/htmlformcontrolscollection.rs index 66e37145e71..271eb204150 100644 --- a/components/script/dom/htmlformcontrolscollection.rs +++ b/components/script/dom/htmlformcontrolscollection.rs @@ -50,16 +50,16 @@ impl HTMLFormControlsCollection { window, ) } +} +impl HTMLFormControlsCollectionMethods for HTMLFormControlsCollection { // FIXME: This shouldn't need to be implemented here since HTMLCollection (the parent of // HTMLFormControlsCollection) implements Length - #[allow(non_snake_case)] - pub fn Length(&self) -> u32 { + // https://dom.spec.whatwg.org/#dom-htmlcollection-length + fn Length(&self) -> u32 { self.collection.Length() } -} -impl HTMLFormControlsCollectionMethods for HTMLFormControlsCollection { // https://html.spec.whatwg.org/multipage/#dom-htmlformcontrolscollection-nameditem fn NamedItem(&self, name: DOMString) -> Option<RadioNodeListOrElement> { // Step 1 |