aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/htmlelement.rs
diff options
context:
space:
mode:
authorDaniel Glazman <daniel@glazman.org>2013-12-09 15:01:47 +0100
committerDaniel Glazman <daniel@glazman.org>2013-12-09 15:55:51 +0100
commit28575c20bfc0cf8040333428451fdecd32a4bca5 (patch)
treea87225bccc7759a6168d7a15f27d8c8ba169a692 /src/components/script/dom/htmlelement.rs
parent76e3b34c758fc732414ae2e3008f4c57b7b94c90 (diff)
downloadservo-28575c20bfc0cf8040333428451fdecd32a4bca5.tar.gz
servo-28575c20bfc0cf8040333428451fdecd32a4bca5.zip
add namespaces to elements
Diffstat (limited to 'src/components/script/dom/htmlelement.rs')
-rw-r--r--src/components/script/dom/htmlelement.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/script/dom/htmlelement.rs b/src/components/script/dom/htmlelement.rs
index cdffbae1611..4d966720428 100644
--- a/src/components/script/dom/htmlelement.rs
+++ b/src/components/script/dom/htmlelement.rs
@@ -9,6 +9,7 @@ use dom::element::{Element, ElementTypeId, HTMLElementTypeId};
use dom::node::{AbstractNode, Node, ScriptView};
use js::jsapi::{JSContext, JSVal};
use js::JSVAL_NULL;
+use dom::namespace;
pub struct HTMLElement {
element: Element
@@ -17,7 +18,7 @@ pub struct HTMLElement {
impl HTMLElement {
pub fn new_inherited(type_id: ElementTypeId, tag_name: ~str, document: AbstractDocument) -> HTMLElement {
HTMLElement {
- element: Element::new(type_id, tag_name, document)
+ element: Element::new(type_id, tag_name, namespace::HTML, document)
}
}