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

Side by Side Diff: sdk/lib/html/templates/html/impl/impl_DocumentFragment.darttemplate

Issue 11409003: Rename addHTML to addHtml. (Closed) Base URL: http://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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 part of html; 5 part of html;
6 6
7 Future<CSSStyleDeclaration> _emptyStyleFuture() { 7 Future<CSSStyleDeclaration> _emptyStyleFuture() {
8 return _createMeasurementFuture(() => new Element.tag('div').style, 8 return _createMeasurementFuture(() => new Element.tag('div').style,
9 new Completer<CSSStyleDeclaration>()); 9 new Completer<CSSStyleDeclaration>());
10 } 10 }
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 } 96 }
97 97
98 void insertAdjacentHTML(String where, String text) { 98 void insertAdjacentHTML(String where, String text) {
99 this._insertAdjacentNode(where, new DocumentFragment.html(text)); 99 this._insertAdjacentNode(where, new DocumentFragment.html(text));
100 } 100 }
101 101
102 void addText(String text) { 102 void addText(String text) {
103 this.insertAdjacentText('beforeend', text); 103 this.insertAdjacentText('beforeend', text);
104 } 104 }
105 105
106 void addHTML(String text) { 106 void addHtml(String text) {
107 this.insertAdjacentHTML('beforeend', text); 107 this.insertAdjacentHTML('beforeend', text);
108 } 108 }
109 109
110 // If we can come up with a semi-reasonable default value for an Element 110 // If we can come up with a semi-reasonable default value for an Element
111 // getter, we'll use it. In general, these return the same values as an 111 // getter, we'll use it. In general, these return the same values as an
112 // element that has no parent. 112 // element that has no parent.
113 String get contentEditable => "false"; 113 String get contentEditable => "false";
114 bool get isContentEditable => false; 114 bool get isContentEditable => false;
115 bool get draggable => false; 115 bool get draggable => false;
116 bool get hidden => false; 116 bool get hidden => false;
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 "WebKit drop zone can't be set for document fragments."); 246 "WebKit drop zone can't be set for document fragments.");
247 } 247 }
248 248
249 void set webkitRegionOverflow(String value) { 249 void set webkitRegionOverflow(String value) {
250 throw new UnsupportedError( 250 throw new UnsupportedError(
251 "WebKit region overflow can't be set for document fragments."); 251 "WebKit region overflow can't be set for document fragments.");
252 } 252 }
253 253
254 $!MEMBERS 254 $!MEMBERS
255 } 255 }
OLDNEW
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.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