diff options
author | Bruno de Oliveira Abinader <bruno.d@partner.samsung.com> | 2014-01-21 11:18:53 -0400 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno.d@partner.samsung.com> | 2014-01-21 12:48:09 -0400 |
commit | 1067da7df8b891b9df961ff6ab57ed2925bd2d03 (patch) | |
tree | b6cde5de3a2b144f9e1a53c48d36467f831c362e /src/components/script/dom/domimplementation.rs | |
parent | 539cf58f732e62be3fd23a86603d78e53f33c82e (diff) | |
download | servo-1067da7df8b891b9df961ff6ab57ed2925bd2d03.tar.gz servo-1067da7df8b891b9df961ff6ab57ed2925bd2d03.zip |
Basic support for Document::contentType
Spec:
http://dom.spec.whatwg.org/#dom-document-contenttype
This is a subtask for #1428, #1510 and #1526.
Diffstat (limited to 'src/components/script/dom/domimplementation.rs')
-rw-r--r-- | src/components/script/dom/domimplementation.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/components/script/dom/domimplementation.rs b/src/components/script/dom/domimplementation.rs index 2cbed7cdfee..33a97be5c55 100644 --- a/src/components/script/dom/domimplementation.rs +++ b/src/components/script/dom/domimplementation.rs @@ -62,16 +62,13 @@ impl DOMImplementation { // http://dom.spec.whatwg.org/#dom-domimplementation-createhtmldocument pub fn CreateHTMLDocument(&self, title: Option<DOMString>) -> AbstractDocument { - // Step 1. + // Step 1-2. let abstract_doc = HTMLDocument::new(self.owner); assert!(abstract_doc.document().doctype == HTML); let abstract_node = AbstractNode::from_document(abstract_doc); assert!(abstract_node.type_id() == DocumentNodeTypeId(HTMLDocumentTypeId)); - // Step 2. - // FIXME: https://github.com/mozilla/servo/pull/1519 - { // Step 3. let doc_type = DocumentType::new(~"html", None, None, abstract_doc); |