diff options
author | glennw <glennw@users.noreply.github.com> | 2014-07-18 10:13:24 +1000 |
---|---|---|
committer | glennw <glennw@users.noreply.github.com> | 2014-07-18 10:13:24 +1000 |
commit | c3e6d956ffafe86de3b8aa4f7717076c1b11e86e (patch) | |
tree | b088e34cc97e2e6e13a84bc3d433438c4e9fc66a /src/components/script/dom/node.rs | |
parent | 2934c5a89d0a5b41936bbf0b9ca3f547ffba70ee (diff) | |
parent | 560e380767e78986fcf79c2be3c2a7231de3df6d (diff) | |
download | servo-c3e6d956ffafe86de3b8aa4f7717076c1b11e86e.tar.gz servo-c3e6d956ffafe86de3b8aa4f7717076c1b11e86e.zip |
Merge pull request #2844 from glennw/atom-element
Convert element name to be stored as atom instead of string.
Diffstat (limited to 'src/components/script/dom/node.rs')
-rw-r--r-- | src/components/script/dom/node.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/script/dom/node.rs b/src/components/script/dom/node.rs index 3b7ccb21dfa..1a82401f765 100644 --- a/src/components/script/dom/node.rs +++ b/src/components/script/dom/node.rs @@ -1272,7 +1272,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().to_string(), element.namespace.clone(), &*document); NodeCast::from_temporary(element) }, |