aboutsummaryrefslogtreecommitdiffstats
path: root/components/script
diff options
context:
space:
mode:
Diffstat (limited to 'components/script')
-rw-r--r--components/script/dom/webidls/XMLDocument.webidl1
-rw-r--r--components/script/dom/xmldocument.rs16
2 files changed, 0 insertions, 17 deletions
diff --git a/components/script/dom/webidls/XMLDocument.webidl b/components/script/dom/webidls/XMLDocument.webidl
index cec935f6906..de40dd87b9d 100644
--- a/components/script/dom/webidls/XMLDocument.webidl
+++ b/components/script/dom/webidls/XMLDocument.webidl
@@ -9,5 +9,4 @@
*/
// https://dom.spec.whatwg.org/#interface-document
-[Constructor]
interface XMLDocument : Document {};
diff --git a/components/script/dom/xmldocument.rs b/components/script/dom/xmldocument.rs
index fc04c418867..e8cf284c7d1 100644
--- a/components/script/dom/xmldocument.rs
+++ b/components/script/dom/xmldocument.rs
@@ -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 {