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

Unified Diff: pkg/custom_element/lib/custom_element.dart

Issue 23525003: Safe DOM w/ fixes (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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 | pkg/custom_element/test/custom_element_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/custom_element/lib/custom_element.dart
diff --git a/pkg/custom_element/lib/custom_element.dart b/pkg/custom_element/lib/custom_element.dart
index 7f963657540721468310bd2e7a7cd212e97930ba..db0c3b82d3c87e701e88022f4ae849c560f977b6 100644
--- a/pkg/custom_element/lib/custom_element.dart
+++ b/pkg/custom_element/lib/custom_element.dart
@@ -313,6 +313,20 @@ class CustomElement implements Element {
host.innerHtml = v;
}
+ void setInnerHtml(String html,
+ {NodeValidator validator, NodeTreeSanitizer treeSanitizer}) {
+ host.setInnerHtml(html, validator: validator, treeSanitizer: treeSanitizer);
+ }
+
+ void set unsafeInnerHtml(String html) {
+ host.unsafeInnerHtml = html;
+ }
+
+ DocumentFragment createFragment(String html,
+ {NodeValidator validator, NodeTreeSanitizer treeSanitizer}) =>
+ host.createFragment(html,
+ validator: validator, treeSanitizer: treeSanitizer);
+
InputMethodContext get inputMethodContext => host.inputMethodContext;
bool get isContentEditable => host.isContentEditable;
« no previous file with comments | « no previous file | pkg/custom_element/test/custom_element_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698