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

Unified Diff: Source/core/xml/DOMParser.idl

Issue 855023002: Sync the DOMParser interface with spec (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix test Created 5 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 | « Source/core/xml/DOMParser.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/xml/DOMParser.idl
diff --git a/Source/core/xml/DOMParser.idl b/Source/core/xml/DOMParser.idl
index aa390c5cbae0c0b0e631e0edbafbb579a96ecdee..ba2a0b4faba2aa7f34ecaa2f2882f1d9e00fbfd1 100644
--- a/Source/core/xml/DOMParser.idl
+++ b/Source/core/xml/DOMParser.idl
@@ -17,10 +17,20 @@
* Boston, MA 02110-1301, USA.
*/
+// https://dvcs.w3.org/hg/innerhtml/raw-file/tip/index.html#the-domparser-interface
+
+enum SupportedType {
+ "text/html",
+ "text/xml",
+ "application/xml",
+ "application/xhtml+xml",
+ "image/svg+xml"
+};
+
[
+ Constructor,
+ TypeChecking=Interface,
Jens Widell 2015/01/16 15:10:45 [TypeChecking=Interface] will have no effect since
philipj_slow 2015/01/16 19:20:07 Ah, I was assuming things without testing. I'll re
WillBeGarbageCollected,
- Constructor
] interface DOMParser {
- [RaisesException] Document parseFromString([Default=Undefined] optional DOMString str,
- [Default=Undefined] optional DOMString contentType);
+ Document parseFromString(DOMString str, SupportedType type);
};
« no previous file with comments | « Source/core/xml/DOMParser.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698