Auto merge of #8675 - GuillaumeGomez:master, r=nox

Add XMLDocument object

Fixes #8000

(Still working on it)

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8675)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2015-11-27 19:29:04 +05:30
commit 99223656fb
18 changed files with 169 additions and 73 deletions

View file

@ -90,21 +90,6 @@
[XMLDocument interface: existence and properties of interface object]
expected: FAIL
[XMLDocument interface object length]
expected: FAIL
[XMLDocument interface: existence and properties of interface prototype object]
expected: FAIL
[XMLDocument interface: existence and properties of interface prototype object's "constructor" property]
expected: FAIL
[XMLDocument must be primary interface of xmlDoc]
expected: FAIL
[Stringification of xmlDoc]
expected: FAIL
[Document interface: xmlDoc must inherit property "origin" with the proper type (3)]
expected: FAIL

View file

@ -1,8 +1,5 @@
[Document-constructor.html]
type: testharness
[new Document(): interfaces]
expected: FAIL
[new Document(): URL parsing]
expected: FAIL

View file

@ -0,0 +1,8 @@
[XMLDocument-constructor.html]
type: testharness
[new XMLDocument(): URL parsing]
expected: FAIL
[new XMLDocument(): characterSet aliases]
expected: FAIL

View file

@ -4,15 +4,9 @@
[Should parse correctly in type text/xml]
expected: FAIL
[XMLDocument interface for correctly parsed document with type text/xml]
expected: FAIL
[Should return an error document for XML wellformedness errors in type text/xml]
expected: FAIL
[XMLDocument interface for incorrectly parsed document with type text/xml]
expected: FAIL
[Should parse correctly in type application/xml]
expected: TIMEOUT

View file

@ -990,12 +990,6 @@
[XMLDocument interface: operation load(DOMString)]
expected: FAIL
[XMLDocument must be primary interface of document.implementation.createDocument(null, "", null)]
expected: FAIL
[Stringification of document.implementation.createDocument(null, "", null)]
expected: FAIL
[XMLDocument interface: document.implementation.createDocument(null, "", null) must inherit property "load" with the proper type (0)]
expected: FAIL

View file

@ -224,6 +224,7 @@ var interfaceNamesInGlobalScope = [
"WorkerGlobalScope", // #2823
"WorkerLocation", // #2823
"WorkerNavigator", // #2823
"XMLDocument",
"XMLHttpRequest",
"XMLHttpRequestEventTarget",
"XMLHttpRequestUpload",