Skip to content
Permalink
Browse files

removed XMLDocument constructor according to spec

  • Loading branch information...
creativcoder committed Mar 1, 2016
1 parent 40c52d5 commit f8cddf5a22afae252410397650de27c825e4e450
@@ -9,5 +9,4 @@
*/

// https://dom.spec.whatwg.org/#interface-document
[Constructor]
interface XMLDocument : Document {};
@@ -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 {
@@ -69,9 +69,6 @@
[Document interface: operation queryAll(DOMString)]
expected: FAIL

[XMLDocument interface: existence and properties of interface object]
expected: FAIL

[Document interface: xmlDoc must inherit property "origin" with the proper type (3)]
expected: FAIL

0 comments on commit f8cddf5

Please sign in to comment.
You can’t perform that action at this time.