Use atom! in place of Atom::from_slice where necessary

This commit is contained in:
Manish Goregaokar 2014-11-22 16:07:55 +05:30
parent e6e73b8da7
commit 534919327d
4 changed files with 6 additions and 8 deletions

View file

@ -824,7 +824,7 @@ impl<'a> ElementMethods for JSRef<'a, Element> {
let name = Atom::from_slice(name.as_slice());
let local_name = Atom::from_slice(local_name);
let xmlns = Atom::from_slice("xmlns"); // TODO: Make this a static atom type
let xmlns = atom!("xmlns");
// Step 7a.
if xmlns == name && namespace != ns!(XMLNS) {