Auto merge of #5874 - nox:hasfeature, r=Ms2ger

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5874)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2015-04-28 01:30:51 -05:00
commit cac6ef8077
3 changed files with 8 additions and 9 deletions

View file

@ -159,7 +159,7 @@ impl<'a> DOMImplementationMethods for JSRef<'a, DOMImplementation> {
} }
// https://dom.spec.whatwg.org/#dom-domimplementation-hasfeature // https://dom.spec.whatwg.org/#dom-domimplementation-hasfeature
fn HasFeature(self, _feature: DOMString, _version: DOMString) -> bool { fn HasFeature(self) -> bool {
true true
} }
} }

View file

@ -4,22 +4,24 @@
* You can obtain one at http://mozilla.org/MPL/2.0/. * You can obtain one at http://mozilla.org/MPL/2.0/.
* *
* The origin of this IDL file is * The origin of this IDL file is
* https://dom.spec.whatwg.org/#interface-domimplementation * https://dom.spec.whatwg.org/#interface=domimplementation
* *
* Copyright: * Copyright:
* To the extent possible under law, the editors have waived all copyright and * To the extent possible under law, the editors have waived all copyright and
* related or neighboring rights to this work. * related or neighboring rights to this work.
*/ */
// [Exposed=Window]
interface DOMImplementation { interface DOMImplementation {
boolean hasFeature(DOMString feature, [NewObject, Throws]
[TreatNullAs=EmptyString] DOMString version);
[Throws]
DocumentType createDocumentType(DOMString qualifiedName, DOMString publicId, DocumentType createDocumentType(DOMString qualifiedName, DOMString publicId,
DOMString systemId); DOMString systemId);
[Throws] [NewObject, Throws]
Document createDocument(DOMString? namespace, Document createDocument(DOMString? namespace,
[TreatNullAs=EmptyString] DOMString qualifiedName, [TreatNullAs=EmptyString] DOMString qualifiedName,
optional DocumentType? doctype = null); optional DocumentType? doctype = null);
[NewObject]
Document createHTMLDocument(optional DOMString title); Document createHTMLDocument(optional DOMString title);
boolean hasFeature(); // useless, always return true
}; };

View file

@ -180,9 +180,6 @@
[DOMImplementation interface: operation createHTMLDocument(DOMString)] [DOMImplementation interface: operation createHTMLDocument(DOMString)]
expected: FAIL expected: FAIL
[DOMImplementation interface: operation hasFeature()]
expected: FAIL
[DocumentFragment interface: existence and properties of interface object] [DocumentFragment interface: existence and properties of interface object]
expected: FAIL expected: FAIL