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

Unified Diff: sdk/lib/html/templates/html/impl/impl_DocumentFragment.darttemplate

Issue 11418075: Dartifying members. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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: sdk/lib/html/templates/html/impl/impl_DocumentFragment.darttemplate
diff --git a/sdk/lib/html/templates/html/impl/impl_DocumentFragment.darttemplate b/sdk/lib/html/templates/html/impl/impl_DocumentFragment.darttemplate
index 22ec7403bd93f6b1645233718460c84959fc0ab5..c0f3ec0950044e54848d380ba0722ca03c2e594c 100644
--- a/sdk/lib/html/templates/html/impl/impl_DocumentFragment.darttemplate
+++ b/sdk/lib/html/templates/html/impl/impl_DocumentFragment.darttemplate
@@ -59,21 +59,21 @@ class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
List<Element> queryAll(String selectors) =>
new _FrozenElementList._wrap($dom_querySelectorAll(selectors));
- String get innerHTML {
+ String get innerHtml {
final e = new Element.tag("div");
e.nodes.add(this.clone(true));
- return e.innerHTML;
+ return e.innerHtml;
}
- String get outerHTML => innerHTML;
+ String get outerHtml => innerHtml;
- // TODO(nweiz): Do we want to support some variant of innerHTML for XML and/or
+ // TODO(nweiz): Do we want to support some variant of innerHtml for XML and/or
// SVG strings?
- void set innerHTML(String value) {
+ void set innerHtml(String value) {
this.nodes.clear();
final e = new Element.tag("div");
- e.innerHTML = value;
+ e.innerHtml = value;
// Copy list first since we don't want liveness during iteration.
List nodes = new List.from(e.nodes);
@@ -103,7 +103,7 @@ class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
this._insertAdjacentNode(where, new Text(text));
}
- void insertAdjacentHTML(String where, String text) {
+ void insertAdjacentHtml(String where, String text) {
this._insertAdjacentNode(where, new DocumentFragment.html(text));
}
@@ -112,7 +112,7 @@ class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
}
void addHtml(String text) {
- this.insertAdjacentHTML('beforeend', text);
+ this.insertAdjacentHtml('beforeend', text);
}
// If we can come up with a semi-reasonable default value for an Element

Powered by Google App Engine
This is Rietveld 408576698