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

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

Issue 10854208: Adding Element.AddHTML and Element.addText methods. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Implementing polyfills for insertAdjacent* to get tests working on FF. 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
88 96
89 /** 97 /**
90 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent 98 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent
91 */ 99 */
92 ElementEvents get on(); 100 ElementEvents get on();
93 101
94 static final int ALLOW_KEYBOARD_INPUT = 1; 102 static final int ALLOW_KEYBOARD_INPUT = 1;
95 103
96 /** @domName Element.childElementCount */ 104 /** @domName Element.childElementCount */
97 final int $dom_childElementCount; 105 final int $dom_childElementCount;
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 EventListenerList get touchEnter(); 374 EventListenerList get touchEnter();
367 375
368 EventListenerList get touchLeave(); 376 EventListenerList get touchLeave();
369 377
370 EventListenerList get touchMove(); 378 EventListenerList get touchMove();
371 379
372 EventListenerList get touchStart(); 380 EventListenerList get touchStart();
373 381
374 EventListenerList get transitionEnd(); 382 EventListenerList get transitionEnd();
375 } 383 }
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