| OLD | NEW |
| 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)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS
{ | 7 $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS
{ |
| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 * var items = document.querySelectorAll('.itemClassName'); | 55 * var items = document.querySelectorAll('.itemClassName'); |
| 56 * | 56 * |
| 57 * For details about CSS selector syntax, see the | 57 * For details about CSS selector syntax, see the |
| 58 * [CSS selector specification](http://www.w3.org/TR/css3-selectors/). | 58 * [CSS selector specification](http://www.w3.org/TR/css3-selectors/). |
| 59 */ | 59 */ |
| 60 ElementList<Element /*=T*/> querySelectorAll/*<T extends Element>*/(String sel
ectors) => | 60 ElementList<Element /*=T*/> querySelectorAll/*<T extends Element>*/(String sel
ectors) => |
| 61 new _FrozenElementList/*<T>*/._wrap(_querySelectorAll(selectors)); | 61 new _FrozenElementList/*<T>*/._wrap(_querySelectorAll(selectors)); |
| 62 | 62 |
| 63 | 63 |
| 64 String get innerHtml { | 64 String get innerHtml { |
| 65 final e = new Element.tag("div"); | 65 final e = new DivElement(); |
| 66 e.append(this.clone(true)); | 66 e.append(this.clone(true)); |
| 67 return e.innerHtml; | 67 return e.innerHtml; |
| 68 } | 68 } |
| 69 | 69 |
| 70 set innerHtml(String value) { | 70 set innerHtml(String value) { |
| 71 this.setInnerHtml(value); | 71 this.setInnerHtml(value); |
| 72 } | 72 } |
| 73 | 73 |
| 74 void setInnerHtml(String html, | 74 void setInnerHtml(String html, |
| 75 {NodeValidator validator, NodeTreeSanitizer treeSanitizer}) { | 75 {NodeValidator validator, NodeTreeSanitizer treeSanitizer}) { |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 * Alias for [querySelectorAll]. Note this function is deprecated because its | 113 * Alias for [querySelectorAll]. Note this function is deprecated because its |
| 114 * semantics will be changing in the future. | 114 * semantics will be changing in the future. |
| 115 */ | 115 */ |
| 116 @deprecated | 116 @deprecated |
| 117 @Experimental() | 117 @Experimental() |
| 118 @DomName('DocumentFragment.querySelectorAll') | 118 @DomName('DocumentFragment.querySelectorAll') |
| 119 ElementList<Element /*=T*/> queryAll/*<T extends Element>*/(String relativeSel
ectors) => | 119 ElementList<Element /*=T*/> queryAll/*<T extends Element>*/(String relativeSel
ectors) => |
| 120 querySelectorAll(relativeSelectors); | 120 querySelectorAll(relativeSelectors); |
| 121 $!MEMBERS | 121 $!MEMBERS |
| 122 } | 122 } |
| OLD | NEW |