diff options
author | Ms2ger <ms2ger@gmail.com> | 2014-06-10 14:46:43 +0200 |
---|---|---|
committer | Ms2ger <ms2ger@gmail.com> | 2014-06-11 19:51:07 +0200 |
commit | d230077f9f269d8f46af07004dd659496f701044 (patch) | |
tree | 39edd01a2530e9dc27c2667c87f6a9e0bff89010 /src/components/script/dom/document.rs | |
parent | 6df6a7d51246307dddc314861a7e1e31963018b2 (diff) | |
download | servo-d230077f9f269d8f46af07004dd659496f701044.tar.gz servo-d230077f9f269d8f46af07004dd659496f701044.zip |
Stop mutating Element::namespace.
Diffstat (limited to 'src/components/script/dom/document.rs')
-rw-r--r-- | src/components/script/dom/document.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/script/dom/document.rs b/src/components/script/dom/document.rs index 1830936e6bd..d28dc78ea55 100644 --- a/src/components/script/dom/document.rs +++ b/src/components/script/dom/document.rs @@ -430,7 +430,7 @@ impl<'a> DocumentMethods for JSRef<'a, Document> { return Err(InvalidCharacter); } let local_name = local_name.as_slice().to_ascii_lower(); - Ok(build_element_from_tag(local_name, self)) + Ok(build_element_from_tag(local_name, namespace::HTML, self)) } // http://dom.spec.whatwg.org/#dom-document-createelementns @@ -473,7 +473,7 @@ impl<'a> DocumentMethods for JSRef<'a, Document> { } if ns == namespace::HTML { - Ok(build_element_from_tag(local_name_from_qname, self)) + Ok(build_element_from_tag(local_name_from_qname, ns, self)) } else { Ok(Element::new(local_name_from_qname, ns, prefix_from_qname, self)) } |