mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Refactoring, added conversion to lowercase for get_attribute_by_name method. (fixes #5561)
This commit is contained in:
parent
bdcf606f48
commit
6a31a75bc6
2 changed files with 6 additions and 8 deletions
|
@ -60,8 +60,7 @@ impl<'a> NamedNodeMapMethods for JSRef<'a, NamedNodeMap> {
|
|||
let owner = self.owner.root();
|
||||
// FIXME(https://github.com/rust-lang/rust/issues/23338)
|
||||
let owner = owner.r();
|
||||
let name = owner.parsed_name(name);
|
||||
owner.get_attribute_by_name(&Atom::from_slice(&name))
|
||||
owner.get_attribute_by_name(name)
|
||||
}
|
||||
|
||||
// https://dom.spec.whatwg.org/#dom-namednodemap-getnameditemns
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue