Skip to content

Commit

Permalink
auto merge of #4027 : znewman01/servo/issue4010, r=Ms2ger
Browse files Browse the repository at this point in the history
Fixes #4010.

This is my first Servo contribution, so let me know if I missed anything!
  • Loading branch information
bors-servo committed Nov 18, 2014
2 parents 929671f + 2399a14 commit efb4fe4
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 376 deletions.
5 changes: 5 additions & 0 deletions components/script/dom/domimplementation.rs
Expand Up @@ -165,4 +165,9 @@ impl<'a> DOMImplementationMethods for JSRef<'a, DOMImplementation> {
// Step 9.
Temporary::from_rooted(*doc)
}

// https://dom.spec.whatwg.org/#dom-domimplementation-hasfeature
fn HasFeature(self, _feature: DOMString, _version: DOMString) -> bool {
true
}
}
4 changes: 2 additions & 2 deletions components/script/dom/webidls/DOMImplementation.webidl
Expand Up @@ -12,8 +12,8 @@
*/

interface DOMImplementation {
/*boolean hasFeature(DOMString feature,
[TreatNullAs=EmptyString] DOMString version);*/
boolean hasFeature(DOMString feature,
[TreatNullAs=EmptyString] DOMString version);
[Throws]
DocumentType createDocumentType(DOMString qualifiedName, DOMString publicId,
DOMString systemId);
Expand Down
3 changes: 0 additions & 3 deletions tests/wpt/metadata/dom/interfaces.html.ini
Expand Up @@ -240,9 +240,6 @@
[DOMImplementation interface: operation hasFeature()]
expected: FAIL
[DOMImplementation interface: document.implementation must inherit property "hasFeature" with the proper type (3)]
expected: FAIL
[DocumentFragment interface: operation getElementById(DOMString)]
expected: FAIL
Expand Down

0 comments on commit efb4fe4

Please sign in to comment.