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

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: Fixing menuelement.compact exclusion. 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 2106a73f8b0a9ae25924209257491fe6c976dd2a..c0b0b67944c3d0e63889d4cc4dd81c22effb610a 100644
--- a/sdk/lib/html/templates/html/impl/impl_DocumentFragment.darttemplate
+++ b/sdk/lib/html/templates/html/impl/impl_DocumentFragment.darttemplate
@@ -62,21 +62,21 @@ $endif
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);
@@ -106,7 +106,7 @@ $endif
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));
}
@@ -115,7 +115,7 @@ $endif
}
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
« no previous file with comments | « sdk/lib/html/src/shared_SVGFactoryProviders.dart ('k') | sdk/lib/html/templates/html/impl/impl_Element.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698