OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 $LIBRARYNAME; | 5 part of $LIBRARYNAME; |
6 | 6 |
7 /** | 7 /** |
8 * Lazy implementation of the child nodes of an element that does not request | 8 * Lazy implementation of the child nodes of an element that does not request |
9 * the actual child nodes of an element until strictly necessary greatly | 9 * the actual child nodes of an element until strictly necessary greatly |
10 * improving performance for the typical cases where it is not required. | 10 * improving performance for the typical cases where it is not required. |
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
292 String value = nodeValue; // Fetch DOM Node property once. | 292 String value = nodeValue; // Fetch DOM Node property once. |
293 return value == null ? super.toString() : value; | 293 return value == null ? super.toString() : value; |
294 } | 294 } |
295 | 295 |
296 $if DARTIUM | 296 $if DARTIUM |
297 /** | 297 /** |
298 * A list of this node's children. | 298 * A list of this node's children. |
299 * | 299 * |
300 * ## Other resources | 300 * ## Other resources |
301 * | 301 * |
302 * * [Node.childNodes] | 302 * * [Node.childNodes](https://developer.mozilla.org/en-US/docs/Web/API/Node.c
hildNodes) |
303 * (https://developer.mozilla.org/en-US/docs/Web/API/Node.childNodes) | 303 * from MDN. |
304 * from MDN. | |
305 */ | 304 */ |
306 @DomName('Node.childNodes') | 305 @DomName('Node.childNodes') |
307 @DocsEditable() | 306 @DocsEditable() |
308 List<Node> get childNodes => wrap_jso(_blink.BlinkNode.instance.childNodes_Get
ter_(unwrap_jso(this))); | 307 List<Node> get childNodes => wrap_jso(_blink.BlinkNode.instance.childNodes_Get
ter_(unwrap_jso(this))); |
309 $else | 308 $else |
310 /** | 309 /** |
311 * A list of this node's children. | 310 * A list of this node's children. |
312 * | 311 * |
313 * ## Other resources | 312 * ## Other resources |
314 * | 313 * |
315 * * [Node.childNodes] | 314 * * [Node.childNodes](https://developer.mozilla.org/en-US/docs/Web/API/Node.c
hildNodes) |
316 * (https://developer.mozilla.org/en-US/docs/Web/API/Node.childNodes) | 315 * from MDN. |
317 * from MDN. | |
318 */ | 316 */ |
319 @DomName('Node.childNodes') | 317 @DomName('Node.childNodes') |
320 @DocsEditable() | 318 @DocsEditable() |
321 @Returns('NodeList') | 319 @Returns('NodeList') |
322 @Creates('NodeList') | 320 @Creates('NodeList') |
323 final List<Node> childNodes; | 321 final List<Node> childNodes; |
324 | 322 |
325 $endif | 323 $endif |
326 $!MEMBERS | 324 $!MEMBERS |
327 } | 325 } |
OLD | NEW |