OLD | NEW |
1 /// The Dart HTML library. | 1 /// The Dart HTML library. |
2 library dart.dom.html; | 2 library dart.dom.html; |
3 | 3 |
4 import 'dart:async'; | 4 import 'dart:async'; |
5 import 'dart:collection'; | 5 import 'dart:collection'; |
6 import 'dart:_collection-dev' hide Symbol; | 6 import 'dart:_collection-dev' hide Symbol; |
7 import 'dart:html_common'; | 7 import 'dart:html_common'; |
8 import 'dart:indexed_db'; | 8 import 'dart:indexed_db'; |
9 import 'dart:isolate'; | 9 import 'dart:isolate'; |
10 import 'dart:json' as json; | 10 import 'dart:json' as json; |
(...skipping 15271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15282 @DomName('Node.textContent') | 15282 @DomName('Node.textContent') |
15283 @DocsEditable | 15283 @DocsEditable |
15284 String text; | 15284 String text; |
15285 | 15285 |
15286 @JSName('addEventListener') | 15286 @JSName('addEventListener') |
15287 @DomName('Node.addEventListener') | 15287 @DomName('Node.addEventListener') |
15288 @DocsEditable | 15288 @DocsEditable |
15289 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; | 15289 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; |
15290 | 15290 |
15291 @JSName('appendChild') | 15291 @JSName('appendChild') |
| 15292 /** |
| 15293 * Adds a node to the end of the child [nodes] list of this node. |
| 15294 * |
| 15295 * If the node already exists in this document, it will be removed from its |
| 15296 * current parent node, then added to this node. |
| 15297 * |
| 15298 * This method is more efficient than `nodes.add`, and is the preferred |
| 15299 * way of appending a child node. |
| 15300 */ |
15292 @DomName('Node.appendChild') | 15301 @DomName('Node.appendChild') |
15293 @DocsEditable | 15302 @DocsEditable |
15294 Node append(Node newChild) native; | 15303 Node append(Node newChild) native; |
15295 | 15304 |
15296 @JSName('cloneNode') | 15305 @JSName('cloneNode') |
15297 @DomName('Node.cloneNode') | 15306 @DomName('Node.cloneNode') |
15298 @DocsEditable | 15307 @DocsEditable |
15299 Node clone(bool deep) native; | 15308 Node clone(bool deep) native; |
15300 | 15309 |
15301 @DomName('Node.contains') | 15310 @DomName('Node.contains') |
(...skipping 12666 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
27968 _position = nextPosition; | 27977 _position = nextPosition; |
27969 return true; | 27978 return true; |
27970 } | 27979 } |
27971 _current = null; | 27980 _current = null; |
27972 _position = _array.length; | 27981 _position = _array.length; |
27973 return false; | 27982 return false; |
27974 } | 27983 } |
27975 | 27984 |
27976 T get current => _current; | 27985 T get current => _current; |
27977 } | 27986 } |
OLD | NEW |