diff options
Diffstat (limited to 'components/script/dom/htmlcollection.rs')
-rw-r--r-- | components/script/dom/htmlcollection.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/htmlcollection.rs b/components/script/dom/htmlcollection.rs index 5a01e5be773..cfcc8b5f2ef 100644 --- a/components/script/dom/htmlcollection.rs +++ b/components/script/dom/htmlcollection.rs @@ -195,7 +195,7 @@ impl HTMLCollection { None => elem.local_name() == qualified_name, Some(prefix) => { qualified_name.starts_with(&**prefix) && - qualified_name.find(":") == Some(prefix.len()) && + qualified_name.find(':') == Some(prefix.len()) && qualified_name.ends_with(&**elem.local_name()) }, } @@ -295,7 +295,7 @@ impl HTMLCollection { .filter(move |element| self.filter.filter(element, &self.root)) } - pub fn elements_iter<'a>(&'a self) -> impl Iterator<Item = DomRoot<Element>> + 'a { + pub fn elements_iter(&self) -> impl Iterator<Item = DomRoot<Element>> + '_ { // Iterate forwards from the root. self.elements_iter_after(&self.root) } |