mirror of
https://github.com/servo/servo
synced 2026-04-27 09:57:23 +02:00
removed XMLDocument constructor according to spec
This commit is contained in:
@@ -73,22 +73,6 @@ impl XMLDocument {
|
||||
}
|
||||
doc
|
||||
}
|
||||
|
||||
pub fn Constructor(global: GlobalRef) -> Fallible<Root<XMLDocument>> {
|
||||
let win = global.as_window();
|
||||
let doc = win.Document();
|
||||
let doc = doc.r();
|
||||
let docloader = DocumentLoader::new(&*doc.loader());
|
||||
|
||||
Ok(XMLDocument::new(win,
|
||||
None,
|
||||
None,
|
||||
IsHTMLDocument::NonHTMLDocument,
|
||||
None,
|
||||
None,
|
||||
DocumentSource::NotFromParser,
|
||||
docloader))
|
||||
}
|
||||
}
|
||||
|
||||
impl XMLDocumentMethods for XMLDocument {
|
||||
|
||||
Reference in New Issue
Block a user