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 17 matching lines...) Expand all Loading... | |
| 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 List<Element> queryAll(String selectors) { |
| 36 return new _FrozenElementList._wrap($dom_querySelectorAll(selectors)); | 36 return new _FrozenElementList._wrap($dom_querySelectorAll(selectors)); |
| 37 } | 37 } |
| 38 | |
| 39 // Note: used to polyfill <template> | |
| 40 Document _templateContentsOwner; | |
|
blois
2013/05/01 17:00:42
Should this be on HtmlDocument?
Jennifer Messerly
2013/05/02 02:58:33
Done.
| |
| 38 } | 41 } |
| OLD | NEW |