Convert element name to be stored as atom instead of string.

This commit is contained in:
Glenn Watson 2014-07-14 13:40:53 +10:00
parent d97ec69957
commit dddd3346a6
6 changed files with 57 additions and 9 deletions

View file

@ -1273,7 +1273,7 @@ impl Node {
ElementNodeTypeId(..) => {
let element: &JSRef<Element> = ElementCast::to_ref(node).unwrap();
let element = element.deref();
let element = build_element_from_tag(element.local_name.clone(),
let element = build_element_from_tag(element.local_name.as_slice().into_string(),
element.namespace.clone(), &*document);
NodeCast::from_temporary(element)
},