| 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 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 |
| 39 /// Checks if [register] is supported on the current platform. |
| 40 bool get supportsRegister { |
| 41 $if DART2JS |
| 42 return JS('bool', '("register" in #)', this); |
| 43 $else |
| 44 return true; |
| 45 $endif |
| 46 } |
| 38 } | 47 } |
| OLD | NEW |