Index: pkg/mdv/test/template_element_test.dart |
diff --git a/pkg/mdv/test/template_element_test.dart b/pkg/mdv/test/template_element_test.dart |
index e90cf9c55ea5d5ca6bff9741292b487bcb591b50..a26d62b502441abef5f996615d15f685742e1486 100644 |
--- a/pkg/mdv/test/template_element_test.dart |
+++ b/pkg/mdv/test/template_element_test.dart |
@@ -40,7 +40,7 @@ templateElementTests() { |
createTestHtml(s) { |
var div = new DivElement(); |
- div.innerHtml = s; |
+ div.setInnerHtml(s, treeSanitizer: new NullTreeSanitizer()); |
testDiv.append(div); |
for (var node in div.queryAll('*')) { |
@@ -1779,3 +1779,10 @@ _deepToSymbol(value) { |
} |
return value; |
} |
+ |
+/** |
+ * Sanitizer which does nothing. |
+ */ |
+class NullTreeSanitizer implements NodeTreeSanitizer { |
+ void sanitizeTree(Node node) {} |
+} |