| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 50    * Finds all descendant elements of this document fragment that match the | 50    * Finds all descendant elements of this document fragment that match the | 
| 51    * specified group of selectors. | 51    * specified group of selectors. | 
| 52    * | 52    * | 
| 53    * [selectors] should be a string using CSS selector syntax. | 53    * [selectors] should be a string using CSS selector syntax. | 
| 54    * | 54    * | 
| 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> querySelectorAll(String selectors) => | 60   ElementList<Element /*=T*/> querySelectorAll/*<T extends Element>*/(String sel
     ectors) => | 
| 61     new _FrozenElementList._wrap(_querySelectorAll(selectors)); | 61     new _FrozenElementList/*<T>*/._wrap(_querySelectorAll(selectors)); | 
|  | 62 | 
| 62 | 63 | 
| 63   String get innerHtml { | 64   String get innerHtml { | 
| 64     final e = new Element.tag("div"); | 65     final e = new Element.tag("div"); | 
| 65     e.append(this.clone(true)); | 66     e.append(this.clone(true)); | 
| 66     return e.innerHtml; | 67     return e.innerHtml; | 
| 67   } | 68   } | 
| 68 | 69 | 
| 69   set innerHtml(String value) { | 70   set innerHtml(String value) { | 
| 70     this.setInnerHtml(value); | 71     this.setInnerHtml(value); | 
| 71   } | 72   } | 
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 108     return querySelector(relativeSelectors); | 109     return querySelector(relativeSelectors); | 
| 109   } | 110   } | 
| 110 | 111 | 
| 111   /** | 112   /** | 
| 112    * Alias for [querySelectorAll]. Note this function is deprecated because its | 113    * Alias for [querySelectorAll]. Note this function is deprecated because its | 
| 113    * semantics will be changing in the future. | 114    * semantics will be changing in the future. | 
| 114    */ | 115    */ | 
| 115   @deprecated | 116   @deprecated | 
| 116   @Experimental() | 117   @Experimental() | 
| 117   @DomName('DocumentFragment.querySelectorAll') | 118   @DomName('DocumentFragment.querySelectorAll') | 
| 118   ElementList<Element> queryAll(String relativeSelectors) { | 119   ElementList<Element /*=T*/> queryAll/*<T extends Element>*/(String relativeSel
     ectors) => | 
| 119     return querySelectorAll(relativeSelectors); | 120     querySelectorAll(relativeSelectors); | 
| 120   } |  | 
| 121 $!MEMBERS | 121 $!MEMBERS | 
| 122 } | 122 } | 
| OLD | NEW | 
|---|