| 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 * The base class for all documents. | 8 * The base class for all documents. |
| 9 * | 9 * |
| 10 * Each web page loaded in the browser has its own [Document] object, which is | 10 * Each web page loaded in the browser has its own [Document] object, which is |
| 11 * typically an [HtmlDocument]. | 11 * typically an [HtmlDocument]. |
| 12 * | 12 * |
| 13 * If you aren't comfortable with DOM concepts, see the Dart tutorial | 13 * If you aren't comfortable with DOM concepts, see the Dart tutorial |
| 14 * [Target 2: Connect Dart & HTML](http://www.dartlang.org/docs/tutorials/connec
t-dart-html/). | 14 * [Target 2: Connect Dart & HTML](http://www.dartlang.org/docs/tutorials/connec
t-dart-html/). |
| 15 */ | 15 */ |
| 16 $(ANNOTATIONS)$(CLASS_MODIFIERS)class $CLASSNAME extends Node $NATIVESPEC | 16 $(ANNOTATIONS)class $CLASSNAME extends Node $NATIVESPEC |
| 17 { | 17 { |
| 18 | 18 |
| 19 $!MEMBERS | 19 $!MEMBERS |
| 20 | 20 |
| 21 /** | 21 /** |
| 22 * Finds all descendant elements of this document that match the specified | 22 * Finds all descendant elements of this document that match the specified |
| 23 * group of selectors. | 23 * group of selectors. |
| 24 * | 24 * |
| 25 * Unless your webpage contains multiple documents, the top-level queryAll | 25 * Unless your webpage contains multiple documents, the top-level queryAll |
| 26 * method behaves the same as this method, so you should use it instead to | 26 * method behaves the same as this method, so you should use it instead to |
| 27 * save typing a few characters. | 27 * save typing a few characters. |
| 28 * | 28 * |
| 29 * [selectors] should be a string using CSS selector syntax. | 29 * [selectors] should be a string using CSS selector syntax. |
| 30 * var items = document.queryAll('.itemClassName'); | 30 * var items = document.queryAll('.itemClassName'); |
| 31 * | 31 * |
| 32 * For details about CSS selector syntax, see the | 32 * For details about CSS selector syntax, see the |
| 33 * [CSS selector specification](http://www.w3.org/TR/css3-selectors/). | 33 * [CSS selector specification](http://www.w3.org/TR/css3-selectors/). |
| 34 */ | 34 */ |
| 35 ElementList queryAll(String selectors) { | 35 ElementList queryAll(String selectors) { |
| 36 return new _FrozenElementList._wrap($dom_querySelectorAll(selectors)); | 36 return new _FrozenElementList._wrap($dom_querySelectorAll(selectors)); |
| 37 } | 37 } |
| 38 } | 38 } |
| OLD | NEW |