mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
Refactoring, return an Atom from Element::parsed_name. #5774
This commit is contained in:
parent
c6ca389d54
commit
21f495139f
2 changed files with 7 additions and 8 deletions
|
@ -79,7 +79,7 @@ impl<'a> NamedNodeMapMethods for &'a NamedNodeMap {
|
|||
// FIXME(https://github.com/rust-lang/rust/issues/23338)
|
||||
let owner = owner.r();
|
||||
let name = owner.parsed_name(name);
|
||||
owner.remove_attribute_by_name(&Atom::from_slice(&name)).ok_or(Error::NotFound)
|
||||
owner.remove_attribute_by_name(&name).ok_or(Error::NotFound)
|
||||
}
|
||||
|
||||
// https://dom.spec.whatwg.org/#dom-namednodemap-removenameditemns
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue