Skip to content

Commit

Permalink
Auto merge of #9825 - creativcoder:remove-contructor-xmldoc, r=KiChjang
Browse files Browse the repository at this point in the history
removed XMLDocument constructor according to spec

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9825)
<!-- Reviewable:end -->
  • Loading branch information
bors-servo committed Mar 3, 2016
2 parents c92ad61 + f8cddf5 commit 46256b3
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 20 deletions.
1 change: 0 additions & 1 deletion components/script/dom/webidls/XMLDocument.webidl
Expand Up @@ -9,5 +9,4 @@
*/

// https://dom.spec.whatwg.org/#interface-document
[Constructor]
interface XMLDocument : Document {};
16 changes: 0 additions & 16 deletions components/script/dom/xmldocument.rs
Expand Up @@ -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 {
Expand Down
3 changes: 0 additions & 3 deletions tests/wpt/metadata/dom/interfaces.html.ini
Expand Up @@ -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

Expand Down

0 comments on commit 46256b3

Please sign in to comment.