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

Unified Diff: Source/core/dom/DOMImplementation.idl

Issue 960533003: Sync the DOMImplementation interface with the spec (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: keep createHTMLDocument argument default value Created 5 years, 10 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/DOMImplementation.idl
diff --git a/Source/core/dom/DOMImplementation.idl b/Source/core/dom/DOMImplementation.idl
index 327543a03d4e729cc9ff63ff164f170db8fcb66a..778896c116cb5540761ef551cfabdbab879aa557 100644
--- a/Source/core/dom/DOMImplementation.idl
+++ b/Source/core/dom/DOMImplementation.idl
@@ -18,27 +18,20 @@
* Boston, MA 02110-1301, USA.
*/
+// https://dom.spec.whatwg.org/#interface-domimplementation
+
[
SetWrapperReferenceFrom=document,
TypeChecking=Interface,
WillBeGarbageCollected,
] interface DOMImplementation {
+ [RaisesException] DocumentType createDocumentType(DOMString qualifiedName, DOMString publicId, DOMString systemId);
+ [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
+ HTMLDocument createHTMLDocument(optional DOMString title = null);
- // DOM Level 1
-
+ // FIXME: hasFeature should take no arguments and always return true. crbug.com/429536
[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,
- [TreatNullAs=EmptyString] DOMString qualifiedName,
- optional DocumentType? doctype = null);
-
- // HTMLDOMImplementation interface from DOM Level 2 HTML
-
- HTMLDocument createHTMLDocument(optional DOMString title = null);
};
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698