Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(211)

Side by Side Diff: dart/tools/dom/templates/html/impl/impl_Document.darttemplate

Issue 66253002: Version 0.8.10.9 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 @DocsEditable() 7 @DocsEditable()
8 $(ANNOTATIONS)$(CLASS_MODIFIERS)class $CLASSNAME extends Node $NATIVESPEC 8 $(ANNOTATIONS)$(CLASS_MODIFIERS)class $CLASSNAME extends Node $NATIVESPEC
9 { 9 {
10 10
11 $!MEMBERS 11 $!MEMBERS
12 /** 12 /**
13 * Finds all descendant elements of this document that match the specified 13 * Finds all descendant elements of this document that match the specified
14 * group of selectors. 14 * group of selectors.
15 * 15 *
16 * Unless your webpage contains multiple documents, the top-level 16 * Unless your webpage contains multiple documents, the top-level
17 * [querySelectorAll] 17 * [querySelectorAll]
18 * method behaves the same as this method, so you should use it instead to 18 * method behaves the same as this method, so you should use it instead to
19 * save typing a few characters. 19 * save typing a few characters.
20 * 20 *
21 * [selectors] should be a string using CSS selector syntax. 21 * [selectors] should be a string using CSS selector syntax.
22 *
22 * var items = document.querySelectorAll('.itemClassName'); 23 * var items = document.querySelectorAll('.itemClassName');
23 * 24 *
24 * For details about CSS selector syntax, see the 25 * For details about CSS selector syntax, see the
25 * [CSS selector specification](http://www.w3.org/TR/css3-selectors/). 26 * [CSS selector specification](http://www.w3.org/TR/css3-selectors/).
26 */ 27 */
27 ElementList querySelectorAll(String selectors) { 28 ElementList querySelectorAll(String selectors) {
28 return new _FrozenElementList._wrap(_querySelectorAll(selectors)); 29 return new _FrozenElementList._wrap(_querySelectorAll(selectors));
29 } 30 }
30 31
31 /** 32 /**
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 $else 64 $else
64 if (typeExtension != null) { 65 if (typeExtension != null) {
65 return _createElement(tagName, typeExtension); 66 return _createElement(tagName, typeExtension);
66 } else { 67 } else {
67 // Fast-path for Dartium when typeExtension is not needed. 68 // Fast-path for Dartium when typeExtension is not needed.
68 return _Utils.createElement(this, tagName); 69 return _Utils.createElement(this, tagName);
69 } 70 }
70 $endif 71 $endif
71 } 72 }
72 } 73 }
OLDNEW
« no previous file with comments | « dart/tools/dom/src/shared_html.dart ('k') | dart/tools/dom/templates/html/impl/impl_DocumentFragment.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698