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

Unified Diff: sdk/lib/html/dart2js/html_dart2js.dart

Issue 14839006: Adding tests for experimental Safe DOM creation technique. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 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 | sdk/lib/html/dartium/html_dartium.dart » ('j') | tests/html/range_test.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/html/dart2js/html_dart2js.dart
diff --git a/sdk/lib/html/dart2js/html_dart2js.dart b/sdk/lib/html/dart2js/html_dart2js.dart
index 968b8ed6c9d854f4073519cf9d1cd982868598d6..0cbb1a704e3fb9a3be240e1ce76058cb95646938 100644
--- a/sdk/lib/html/dart2js/html_dart2js.dart
+++ b/sdk/lib/html/dart2js/html_dart2js.dart
@@ -17547,6 +17547,16 @@ class Range native "Range" {
@DocsEditable
String toString() native;
+
+ /**
+ * Checks if createContextualFragment is supported.
+ *
+ * See also:
+ *
+ * * [createContextualFragment]
+ */
+ static bool get supportsCreateContextualFragment =>
+ JS('bool', '("createContextualFragment" in window.Range.prototype)');
Jennifer Messerly 2013/05/06 23:28:52 just curious, any reason to prefer this pattern ov
blois 2013/05/07 00:43:08 I did some testing a while back and this was actua
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | tests/html/range_test.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698