Remove DocumentTypeId.

This commit is contained in:
Ms2ger 2014-02-22 21:03:39 +01:00
parent 5ede84fa46
commit 870ccd95d2
8 changed files with 46 additions and 44 deletions

View file

@ -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)