mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Fix DOMImplementation.hasFeature()
This commit is contained in:
parent
92359c7b9a
commit
6e75889e41
3 changed files with 8 additions and 9 deletions
|
@ -4,22 +4,24 @@
|
|||
* You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* The origin of this IDL file is
|
||||
* https://dom.spec.whatwg.org/#interface-domimplementation
|
||||
* https://dom.spec.whatwg.org/#interface=domimplementation
|
||||
*
|
||||
* Copyright:
|
||||
* To the extent possible under law, the editors have waived all copyright and
|
||||
* related or neighboring rights to this work.
|
||||
*/
|
||||
|
||||
// [Exposed=Window]
|
||||
interface DOMImplementation {
|
||||
boolean hasFeature(DOMString feature,
|
||||
[TreatNullAs=EmptyString] DOMString version);
|
||||
[Throws]
|
||||
[NewObject, Throws]
|
||||
DocumentType createDocumentType(DOMString qualifiedName, DOMString publicId,
|
||||
DOMString systemId);
|
||||
[Throws]
|
||||
[NewObject, Throws]
|
||||
Document createDocument(DOMString? namespace,
|
||||
[TreatNullAs=EmptyString] DOMString qualifiedName,
|
||||
optional DocumentType? doctype = null);
|
||||
[NewObject]
|
||||
Document createHTMLDocument(optional DOMString title);
|
||||
|
||||
boolean hasFeature(); // useless, always return true
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue