auto merge of #4027 : znewman01/servo/issue4010, r=Ms2ger

Fixes #4010.

This is my first Servo contribution, so let me know if I missed anything!
This commit is contained in:
bors-servo 2014-11-18 07:54:33 -07:00
commit efb4fe4a4a
4 changed files with 7 additions and 376 deletions

View file

@ -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
}
}

View file

@ -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);