Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(831)

Unified Diff: core/dom/DOMImplementation.idl

Issue 1660113002: Updated to Chrome 45 (2454) moved from SVN to git. Base URL: https://github.com/dart-lang/webcore.git@roll_45
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « core/dom/DOMException.idl ('k') | core/dom/DOMMatrix.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
};
« no previous file with comments | « core/dom/DOMException.idl ('k') | core/dom/DOMMatrix.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698