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

Side by Side Diff: lib/html/doc/interface/Element.dartdoc

Issue 10878027: Revert "Adding Element.AddHTML and Element.addText methods." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « lib/html/dartium/html_dartium.dart ('k') | tests/html/element_add_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // WARNING: 5 // WARNING:
6 // This file contains documentation that is merged into the real source. 6 // This file contains documentation that is merged into the real source.
7 // Do not make code changes here. 7 // Do not make code changes here.
8 8
9 interface ElementList extends List<Element> { 9 interface ElementList extends List<Element> {
10 // TODO(jacobr): add element batch manipulation methods. 10 // TODO(jacobr): add element batch manipulation methods.
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 /** @domName Window.getComputedStyle */ 78 /** @domName Window.getComputedStyle */
79 Future<CSSStyleDeclaration> get computedStyle(); 79 Future<CSSStyleDeclaration> get computedStyle();
80 80
81 /** @domName Window.getComputedStyle */ 81 /** @domName Window.getComputedStyle */
82 Future<CSSStyleDeclaration> getComputedStyle(String pseudoElement); 82 Future<CSSStyleDeclaration> getComputedStyle(String pseudoElement);
83 83
84 Element clone(bool deep); 84 Element clone(bool deep);
85 85
86 Element get parent(); 86 Element get parent();
87 87
88 void addText(String text) {
89 this.insertAdjacentText('beforeend', text);
90 }
91
92 void addHTML(String text) {
93 this.insertAdjacentHTML('beforeend', text);
94 }
95
96 88
97 /** 89 /**
98 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent 90 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent
99 */ 91 */
100 ElementEvents get on(); 92 ElementEvents get on();
101 93
102 static final int ALLOW_KEYBOARD_INPUT = 1; 94 static final int ALLOW_KEYBOARD_INPUT = 1;
103 95
104 /** @domName Element.childElementCount */ 96 /** @domName Element.childElementCount */
105 final int $dom_childElementCount; 97 final int $dom_childElementCount;
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 EventListenerList get touchEnter(); 366 EventListenerList get touchEnter();
375 367
376 EventListenerList get touchLeave(); 368 EventListenerList get touchLeave();
377 369
378 EventListenerList get touchMove(); 370 EventListenerList get touchMove();
379 371
380 EventListenerList get touchStart(); 372 EventListenerList get touchStart();
381 373
382 EventListenerList get transitionEnd(); 374 EventListenerList get transitionEnd();
383 } 375 }
OLDNEW
« no previous file with comments | « lib/html/dartium/html_dartium.dart ('k') | tests/html/element_add_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698