fix getElementsByTagName()

This commit is contained in:
Maciej Skrzypkowski 2016-11-04 10:27:04 +01:00
parent 0c6a277b09
commit af5d109695
8 changed files with 46 additions and 92 deletions

View file

@ -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