Chromium Code Reviews| 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 |
| (...skipping 14 matching lines...) Expand all Loading... | |
| 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 List<Element> queryAll(String selectors) { | 35 HtmlList<Element> queryAll(String selectors) { |
|
blois
2013/05/03 20:13:37
Can we make this ElementList<>?
| |
| 36 return new _FrozenElementList._wrap($dom_querySelectorAll(selectors)); | 36 return new HtmlList._wrap($dom_querySelectorAll(selectors)); |
| 37 } | 37 } |
| 38 } | 38 } |
| OLD | NEW |