mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
fix getElementsByTagName()
This commit is contained in:
parent
0c6a277b09
commit
af5d109695
8 changed files with 46 additions and 92 deletions
|
@ -1441,7 +1441,7 @@ impl ElementMethods for Element {
|
|||
// https://dom.spec.whatwg.org/#dom-element-getelementsbytagname
|
||||
fn GetElementsByTagName(&self, localname: DOMString) -> Root<HTMLCollection> {
|
||||
let window = window_from_node(self);
|
||||
HTMLCollection::by_tag_name(&window, self.upcast(), localname)
|
||||
HTMLCollection::by_qualified_name(&window, self.upcast(), LocalName::from(&*localname))
|
||||
}
|
||||
|
||||
// https://dom.spec.whatwg.org/#dom-element-getelementsbytagnamens
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue