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 @DocsEditable |
|
Emily Fortuna
2013/09/14 03:47:43
is this really an improvement? I think it's nice t
| |
| 8 * The base class for all documents. | |
| 9 * | |
| 10 * Each web page loaded in the browser has its own [Document] object, which is | |
| 11 * typically an [HtmlDocument]. | |
| 12 * | |
| 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/). | |
| 15 */ | |
| 16 $(ANNOTATIONS)$(CLASS_MODIFIERS)class $CLASSNAME extends Node $NATIVESPEC | 8 $(ANNOTATIONS)$(CLASS_MODIFIERS)class $CLASSNAME extends Node $NATIVESPEC |
| 17 { | 9 { |
| 18 | 10 |
| 19 $!MEMBERS | 11 $!MEMBERS |
| 20 | 12 |
| 21 /** | 13 /** |
| 22 * Finds all descendant elements of this document that match the specified | 14 * Finds all descendant elements of this document that match the specified |
| 23 * group of selectors. | 15 * group of selectors. |
| 24 * | 16 * |
| 25 * Unless your webpage contains multiple documents, the top-level queryAll | 17 * Unless your webpage contains multiple documents, the top-level queryAll |
| (...skipping 12 matching lines...) Expand all Loading... | |
| 38 | 30 |
| 39 /// Checks if [register] is supported on the current platform. | 31 /// Checks if [register] is supported on the current platform. |
| 40 bool get supportsRegister { | 32 bool get supportsRegister { |
| 41 $if DART2JS | 33 $if DART2JS |
| 42 return JS('bool', '("register" in #)', this); | 34 return JS('bool', '("register" in #)', this); |
| 43 $else | 35 $else |
| 44 return true; | 36 return true; |
| 45 $endif | 37 $endif |
| 46 } | 38 } |
| 47 } | 39 } |
| OLD | NEW |