removed XMLDocument constructor according to spec

This commit is contained in:
Rahul Sharma 2016-03-01 20:49:13 +05:30
parent 40c52d55e2
commit f8cddf5a22
3 changed files with 0 additions and 20 deletions

View file

@ -9,5 +9,4 @@
*/
// https://dom.spec.whatwg.org/#interface-document
[Constructor]
interface XMLDocument : Document {};

View file

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