Index: core/dom/DOMImplementation.idl |
diff --git a/core/dom/DOMImplementation.idl b/core/dom/DOMImplementation.idl |
index d210529988b3d61554dfd7ed7a953699b0ea9b3c..6ed29bbdf1c1754990916e666ea87612cd687e13 100644 |
--- a/core/dom/DOMImplementation.idl |
+++ b/core/dom/DOMImplementation.idl |
@@ -18,26 +18,19 @@ |
* Boston, MA 02110-1301, USA. |
*/ |
+// https://dom.spec.whatwg.org/#interface-domimplementation |
+ |
[ |
SetWrapperReferenceFrom=document, |
+ TypeChecking=Interface, |
WillBeGarbageCollected, |
] interface DOMImplementation { |
+ [NewObject, RaisesException] DocumentType createDocumentType(DOMString qualifiedName, DOMString publicId, DOMString systemId); |
+ [NewObject, RaisesException] XMLDocument createDocument(DOMString? namespaceURI, [TreatNullAs=EmptyString] DOMString qualifiedName, optional DocumentType? doctype = null); |
+ // FIXME: createHTMLDocument should return a Document. crbug.com/238368 |
+ // FIXME: The title argument should not have a default value. crbug.com/335871 |
+ [NewObject] HTMLDocument createHTMLDocument(optional DOMString title = null); |
- // DOM Level 1 |
- |
- [ImplementedAs=hasFeatureForBindings, MeasureAs=DOMImplementationHasFeature] |
- boolean hasFeature(DOMString feature, DOMString? version); |
- |
- // DOM Level 2 |
- |
- [RaisesException] DocumentType createDocumentType(DOMString qualifiedName, |
- DOMString publicId, |
- DOMString systemId); |
- [RaisesException] XMLDocument createDocument(DOMString? namespaceURI, |
- DOMString? qualifiedName, |
- [Default=Undefined] optional DocumentType doctype); |
- |
- // HTMLDOMImplementation interface from DOM Level 2 HTML |
- |
- HTMLDocument createHTMLDocument(optional DOMString title = null); |
+ // useless; always returns true |
+ boolean hasFeature(); |
}; |