mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Auto merge of #9825 - creativcoder:remove-contructor-xmldoc, r=KiChjang
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 -->
This commit is contained in:
commit
46256b33ef
3 changed files with 0 additions and 20 deletions
|
@ -9,5 +9,4 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// https://dom.spec.whatwg.org/#interface-document
|
// https://dom.spec.whatwg.org/#interface-document
|
||||||
[Constructor]
|
|
||||||
interface XMLDocument : Document {};
|
interface XMLDocument : Document {};
|
||||||
|
|
|
@ -73,22 +73,6 @@ impl XMLDocument {
|
||||||
}
|
}
|
||||||
doc
|
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 {
|
impl XMLDocumentMethods for XMLDocument {
|
||||||
|
|
|
@ -69,9 +69,6 @@
|
||||||
[Document interface: operation queryAll(DOMString)]
|
[Document interface: operation queryAll(DOMString)]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[XMLDocument interface: existence and properties of interface object]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: xmlDoc must inherit property "origin" with the proper type (3)]
|
[Document interface: xmlDoc must inherit property "origin" with the proper type (3)]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue