aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/domparser.rs
diff options
context:
space:
mode:
authorMs2ger <ms2ger@gmail.com>2014-02-22 21:03:39 +0100
committerMs2ger <ms2ger@gmail.com>2014-02-24 22:35:28 +0100
commit870ccd95d2fd9afbc0128bd6b44391eb695554c9 (patch)
tree652dca921dcb0a174585a34d300b4f288074fb9c /src/components/script/dom/domparser.rs
parent5ede84fa46c5aa5fe1d7c969c7c0714a6730b7f1 (diff)
downloadservo-870ccd95d2fd9afbc0128bd6b44391eb695554c9.tar.gz
servo-870ccd95d2fd9afbc0128bd6b44391eb695554c9.zip
Remove DocumentTypeId.
Diffstat (limited to 'src/components/script/dom/domparser.rs')
-rw-r--r--src/components/script/dom/domparser.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/script/dom/domparser.rs b/src/components/script/dom/domparser.rs
index f95a8e853e5..f66e737a5f8 100644
--- a/src/components/script/dom/domparser.rs
+++ b/src/components/script/dom/domparser.rs
@@ -8,7 +8,7 @@ use dom::bindings::js::JS;
use dom::bindings::utils::{Reflector, Reflectable, reflect_dom_object};
use dom::bindings::utils::Fallible;
use dom::bindings::utils::FailureUnknown;
-use dom::document::{Document, HTMLDocumentTypeId};
+use dom::document::{Document, HTMLDocument};
use dom::window::Window;
use servo_util::str::DOMString;
@@ -41,7 +41,7 @@ impl DOMParser {
-> Fallible<JS<Document>> {
match ty {
Text_html => {
- Ok(Document::new(&self.owner, None, HTMLDocumentTypeId, None))
+ Ok(Document::new(&self.owner, None, HTMLDocument, None))
}
Text_xml => {
Document::Constructor(&self.owner)