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

Side by Side Diff: dart/tools/dom/templates/html/impl/impl_DocumentFragment.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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 $(ANNOTATIONS)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { 7 $(ANNOTATIONS)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
8 factory $CLASSNAME() => document.createDocumentFragment(); 8 factory $CLASSNAME() => document.createDocumentFragment();
9 9
10 factory $CLASSNAME.html(String html, 10 factory $CLASSNAME.html(String html,
(...skipping 25 matching lines...) Expand all
36 } 36 }
37 37
38 void set children(List<Element> value) { 38 void set children(List<Element> value) {
39 // Copy list first since we don't want liveness during iteration. 39 // Copy list first since we don't want liveness during iteration.
40 List copy = new List.from(value); 40 List copy = new List.from(value);
41 var children = this.children; 41 var children = this.children;
42 children.clear(); 42 children.clear();
43 children.addAll(copy); 43 children.addAll(copy);
44 } 44 }
45 45
46 /**
47 * Finds all descendant elements of this document fragment that match the
48 * specified group of selectors.
49 *
50 * [selectors] should be a string using CSS selector syntax.
51 *
52 * var items = document.querySelectorAll('.itemClassName');
53 *
54 * For details about CSS selector syntax, see the
55 * [CSS selector specification](http://www.w3.org/TR/css3-selectors/).
56 */
46 ElementList querySelectorAll(String selectors) => 57 ElementList querySelectorAll(String selectors) =>
47 new _FrozenElementList._wrap(_querySelectorAll(selectors)); 58 new _FrozenElementList._wrap(_querySelectorAll(selectors));
48 59
49 60
50 61
51 String get innerHtml { 62 String get innerHtml {
52 final e = new Element.tag("div"); 63 final e = new Element.tag("div");
53 e.append(this.clone(true)); 64 e.append(this.clone(true));
54 return e.innerHtml; 65 return e.innerHtml;
55 } 66 }
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 * semantics will be changing in the future. 110 * semantics will be changing in the future.
100 */ 111 */
101 @deprecated 112 @deprecated
102 @Experimental() 113 @Experimental()
103 @DomName('DocumentFragment.querySelectorAll') 114 @DomName('DocumentFragment.querySelectorAll')
104 ElementList queryAll(String relativeSelectors) { 115 ElementList queryAll(String relativeSelectors) {
105 return querySelectorAll(relativeSelectors); 116 return querySelectorAll(relativeSelectors);
106 } 117 }
107 $!MEMBERS 118 $!MEMBERS
108 } 119 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698