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

Unified Diff: lib/html/doc/interface/Element.dartdoc

Issue 10854208: Adding Element.AddHTML and Element.addText methods. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updating CL to the latest committed version. Created 8 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
Index: lib/html/doc/interface/Element.dartdoc
diff --git a/lib/html/doc/interface/Element.dartdoc b/lib/html/doc/interface/Element.dartdoc
index 60eb8c40cc3c42140616965c3befd361329a3c36..4738c257be0923f6e57abd67e90414b1f89c6b7f 100644
--- a/lib/html/doc/interface/Element.dartdoc
+++ b/lib/html/doc/interface/Element.dartdoc
@@ -85,6 +85,14 @@ interface Element extends Node, NodeSelector default _ElementFactoryProvider {
Element get parent();
+ void addText(String text) {
vsm 2012/08/22 18:22:27 Can you add a brief comment on each of these?
blois 2012/08/22 20:06:13 Done.
+ this.insertAdjacentText('beforeend', text);
+ }
+
+ void addHTML(String text) {
+ this.insertAdjacentHTML('beforeend', text);
+ }
+
/**
* @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent

Powered by Google App Engine
This is Rietveld 408576698