mirror of
https://github.com/servo/servo.git
synced 2025-06-21 15:49:04 +01:00
Remove DocumentTypeId.
This commit is contained in:
parent
5ede84fa46
commit
870ccd95d2
8 changed files with 46 additions and 44 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue