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

Unified Diff: sdk/lib/html/templates/html/impl/impl_Element.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_Element.darttemplate
diff --git a/sdk/lib/html/templates/html/impl/impl_Element.darttemplate b/sdk/lib/html/templates/html/impl/impl_Element.darttemplate
index 7899940994ce8c5410ff39dcb363a37e14bd7e6a..e6f45b7831264a8053e8ec1ad3364eba7ebdb5af 100644
--- a/sdk/lib/html/templates/html/impl/impl_Element.darttemplate
+++ b/sdk/lib/html/templates/html/impl/impl_Element.darttemplate
@@ -347,6 +347,14 @@ abstract class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
}
}
+ /**
+ * Deprecated, use innerHtml instead.
+ */
+ String get innerHTML => this.innerHtml;
+ void set innerHTML(String value) {
+ this.innerHtml = value;
+ }
+
void set elements(Collection<Element> value) {
this.children = value;
}
@@ -428,7 +436,7 @@ abstract class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
* last child of this.
*/
void addHtml(String text) {
- this.insertAdjacentHTML('beforeend', text);
+ this.insertAdjacentHtml('beforeend', text);
}
// Hooks to support custom WebComponents.
@@ -480,15 +488,15 @@ $if DART2JS
native 'insertAdjacentText';
/** @domName Element.insertAdjacentHTML */
- void insertAdjacentHTML(String where, String text) {
- if (JS('bool', '!!#.insertAdjacentHTML', this)) {
- _insertAdjacentHTML(where, text);
+ void insertAdjacentHtml(String where, String text) {
+ if (JS('bool', '!!#.insertAdjacentHtml', this)) {
+ _insertAdjacentHtml(where, text);
} else {
_insertAdjacentNode(where, new DocumentFragment.html(text));
}
}
- void _insertAdjacentHTML(String where, String text)
+ void _insertAdjacentHtml(String where, String text)
native 'insertAdjacentHTML';
/** @domName Element.insertAdjacentHTML */
@@ -566,7 +574,7 @@ class _ElementFactoryProvider {
}
}
final Element temp = new Element.tag(parentTag);
- temp.innerHTML = html;
+ temp.innerHtml = html;
Element element;
if (temp.children.length == 1) {

Powered by Google App Engine
This is Rietveld 408576698