Index: tools/dom/templates/html/impl/impl_Element.darttemplate |
diff --git a/tools/dom/templates/html/impl/impl_Element.darttemplate b/tools/dom/templates/html/impl/impl_Element.darttemplate |
index d18eb4b94f78b6cb6df62d7d676c05d7fbbff32c..6e3bac117b4e781eb0025c0590fe18019f2e328c 100644 |
--- a/tools/dom/templates/html/impl/impl_Element.darttemplate |
+++ b/tools/dom/templates/html/impl/impl_Element.darttemplate |
@@ -727,8 +727,10 @@ $(ANNOTATIONS)$(NATIVESPEC)abstract class $CLASSNAME$EXTENDS$IMPLEMENTS { |
* Parses the specified text as HTML and adds the resulting node after the |
* last child of this element. |
*/ |
- void appendHtml(String text) { |
- this.insertAdjacentHtml('beforeend', text); |
+ void appendHtml(String text, {NodeValidator validator, |
+ NodeTreeSanitizer treeSanitizer}) { |
+ this.insertAdjacentHtml('beforeend', text, validator: validator, |
+ treeSanitizer: treeSanitizer); |
} |
/** |
@@ -1007,12 +1009,10 @@ $if DART2JS |
* * [insertAdjacentText] |
* * [insertAdjacentElement] |
*/ |
- void insertAdjacentHtml(String where, String html) { |
- if (JS('bool', '!!#.insertAdjacentHTML', this)) { |
- _insertAdjacentHtml(where, html); |
- } else { |
- _insertAdjacentNode(where, new DocumentFragment.html(html)); |
- } |
+ void insertAdjacentHtml(String where, String html, {NodeValidator validator, |
+ NodeTreeSanitizer treeSanitizer}) { |
+ _insertAdjacentNode(where, new DocumentFragment.html(html, |
+ validator: validator, treeSanitizer: treeSanitizer)); |
} |
@JSName('insertAdjacentHTML') |