| 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 @DocsEditable | 7 @DocsEditable |
| 8 $(ANNOTATIONS)$(CLASS_MODIFIERS)class $CLASSNAME extends Node $NATIVESPEC | 8 $(ANNOTATIONS)$(CLASS_MODIFIERS)class $CLASSNAME extends Node $NATIVESPEC |
| 9 { | 9 { |
| 10 | 10 |
| 11 $!MEMBERS | 11 $!MEMBERS |
| 12 | |
| 13 /** | 12 /** |
| 14 * Finds all descendant elements of this document that match the specified | 13 * Finds all descendant elements of this document that match the specified |
| 15 * group of selectors. | 14 * group of selectors. |
| 16 * | 15 * |
| 17 * Unless your webpage contains multiple documents, the top-level queryAll | 16 * Unless your webpage contains multiple documents, the top-level queryAll |
| 18 * method behaves the same as this method, so you should use it instead to | 17 * method behaves the same as this method, so you should use it instead to |
| 19 * save typing a few characters. | 18 * save typing a few characters. |
| 20 * | 19 * |
| 21 * [selectors] should be a string using CSS selector syntax. | 20 * [selectors] should be a string using CSS selector syntax. |
| 22 * var items = document.queryAll('.itemClassName'); | 21 * var items = document.queryAll('.itemClassName'); |
| (...skipping 21 matching lines...) Expand all Loading... |
| 44 $else | 43 $else |
| 45 if (typeExtension != null) { | 44 if (typeExtension != null) { |
| 46 return _createElement(tagName, typeExtension); | 45 return _createElement(tagName, typeExtension); |
| 47 } else { | 46 } else { |
| 48 // Fast-path for Dartium when typeExtension is not needed. | 47 // Fast-path for Dartium when typeExtension is not needed. |
| 49 return _Utils.createElement(this, tagName); | 48 return _Utils.createElement(this, tagName); |
| 50 } | 49 } |
| 51 $endif | 50 $endif |
| 52 } | 51 } |
| 53 } | 52 } |
| OLD | NEW |