aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/domimplementation.rs
diff options
context:
space:
mode:
authorMs2ger <ms2ger@gmail.com>2014-02-22 14:31:30 +0100
committerMs2ger <ms2ger@gmail.com>2014-02-24 22:28:27 +0100
commit5ede84fa46c5aa5fe1d7c969c7c0714a6730b7f1 (patch)
tree2a56af5026571ed68f85182d93dc996766332e42 /src/components/script/dom/domimplementation.rs
parente2617a6396e6f9fd0aac43c418ad786957c475e6 (diff)
downloadservo-5ede84fa46c5aa5fe1d7c969c7c0714a6730b7f1.tar.gz
servo-5ede84fa46c5aa5fe1d7c969c7c0714a6730b7f1.zip
Remove document::DocumentType (fixes #1730).
Diffstat (limited to 'src/components/script/dom/domimplementation.rs')
-rw-r--r--src/components/script/dom/domimplementation.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/components/script/dom/domimplementation.rs b/src/components/script/dom/domimplementation.rs
index 329bcc74263..ee9af6206c9 100644
--- a/src/components/script/dom/domimplementation.rs
+++ b/src/components/script/dom/domimplementation.rs
@@ -8,7 +8,7 @@ use dom::bindings::js::JS;
use dom::bindings::utils::{Reflector, Reflectable, reflect_dom_object};
use dom::bindings::utils::{Fallible, InvalidCharacter, NamespaceError};
use dom::bindings::utils::{QName, Name, InvalidXMLName, xml_name_type};
-use dom::document::{Document, HTML, HTMLDocumentTypeId};
+use dom::document::{Document, HTMLDocumentTypeId};
use dom::documenttype::DocumentType;
use dom::htmlbodyelement::HTMLBodyElement;
use dom::htmlheadelement::HTMLHeadElement;
@@ -66,9 +66,7 @@ impl DOMImplementation {
// http://dom.spec.whatwg.org/#dom-domimplementation-createhtmldocument
pub fn CreateHTMLDocument(&self, title: Option<DOMString>) -> JS<Document> {
// Step 1-2.
- let doc = Document::new(&self.owner, None, HTML, None);
- assert!(doc.get().doctype == HTML);
-
+ let doc = Document::new(&self.owner, None, HTMLDocumentTypeId, None);
let mut doc_node: JS<Node> = NodeCast::from(&doc);
assert!(doc_node.type_id() == DocumentNodeTypeId(HTMLDocumentTypeId));