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

Unified Diff: tests/html/custom_element_bindings_test.dart

Issue 16374007: First rev of Safe DOM (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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
Index: tests/html/custom_element_bindings_test.dart
diff --git a/tests/html/custom_element_bindings_test.dart b/tests/html/custom_element_bindings_test.dart
index 3b9d6a9262fea8fa23966766e76e694b94f885c1..6b52ecf767721ac059ff34db2bfd0c40246549fd 100644
--- a/tests/html/custom_element_bindings_test.dart
+++ b/tests/html/custom_element_bindings_test.dart
@@ -32,7 +32,12 @@ customElementBindingsTest() {
createTestHtml(s) {
var div = new DivElement();
- div.innerHtml = s;
+ /*div.setInnerHtml(s,
+ validator: new NodeValidatorBuilder.common()
+ ..allowCustomElement('my-custom-element', attributes: ['*']));
+ */
+ //div.setInnerHtml(s, treeSanitizer: new NullTreeSanitizer());
+ div.$dom_innerHtml = s;
testDiv.append(div);
for (var node in div.queryAll('*')) {

Powered by Google App Engine
This is Rietveld 408576698