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

Unified Diff: core/xml/DOMParser.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/workers/WorkerNavigator.idl ('k') | core/xml/DocumentXPathEvaluator.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/xml/DOMParser.idl
diff --git a/core/xml/DOMParser.idl b/core/xml/DOMParser.idl
index aa390c5cbae0c0b0e631e0edbafbb579a96ecdee..f81725542ee80db86b52675fae1b66a1b2028721 100644
--- a/core/xml/DOMParser.idl
+++ b/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"
+};
+
[
- WillBeGarbageCollected,
- Constructor
+ Constructor,
+ ConstructorCallWith=Document,
+ GarbageCollected,
] interface DOMParser {
- [RaisesException] Document parseFromString([Default=Undefined] optional DOMString str,
- [Default=Undefined] optional DOMString contentType);
+ [NewObject] Document parseFromString(DOMString str, SupportedType type);
};
« no previous file with comments | « core/workers/WorkerNavigator.idl ('k') | core/xml/DocumentXPathEvaluator.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698