<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -604,7 +604,9 @@ Y.mix(Node.prototype, {
      * @return {NodeList} A NodeList instance for the matching HTMLCollection/Array.
      */
     all: function(selector) {
-        return Y.all(Y.Selector.query(selector, this._node));
+        var nodelist = Y.all(Y.Selector.query(selector, this._node));
+        nodelist._query = selector;
+        return nodelist;
     },
 
     /**</diff>
      <filename>build/node/node-base-debug.js</filename>
    </modified>
    <modified>
      <diff>@@ -1,2 +1,2 @@
-YUI.add(&quot;node-base&quot;,function(C){var G=&quot;.&quot;,E=&quot;nodeName&quot;,I=&quot;nodeType&quot;,B=&quot;ownerDocument&quot;,H=&quot;tagName&quot;,D=&quot;_yuid&quot;,F=function(L){var K=L[D];if(K&amp;&amp;F._instances[K]&amp;&amp;F._instances[K]._node!==L){L[D]=null;}K=C.stamp(L);if(!K){K=C.guid();}this[D]=K;this._node=L;F._instances[K]=this;this._stateProxy=L;if(this._initPlugins){this._initPlugins();}},J=function(L){var K=null;if(L){K=(typeof L===&quot;string&quot;)?function(M){return C.Selector.test(M,L);}:function(M){return L(F.get(M));};}return K;};F.NAME=&quot;Node&quot;;F.re_aria=/^(?:role$|aria-)/;F.DOM_EVENTS={abort:true,beforeunload:true,blur:true,change:true,click:true,close:true,command:true,contextmenu:true,drag:true,dragstart:true,dragenter:true,dragover:true,dragleave:true,dragend:true,drop:true,dblclick:true,error:true,focus:true,keydown:true,keypress:true,keyup:true,load:true,message:true,mousedown:true,mousemove:true,mouseout:true,mouseover:true,mouseup:true,mousemultiwheel:true,mousewheel:true,submit:true,mouseenter:true,mouseleave:true,scroll:true,reset:true,resize:true,select:true,textInput:true,unload:true};C.mix(F.DOM_EVENTS,C.Env.evt.plugins);F._instances={};F.getDOMNode=function(K){if(K){return(K.nodeType)?K:K._node||null;}return null;};F.scrubVal=function(L,K){if(K&amp;&amp;L){if(typeof L===&quot;object&quot;||typeof L===&quot;function&quot;){if(I in L||C.DOM.isWindow(L)){L=F.get(L);}else{if((L.item&amp;&amp;!L._nodes)||(L[0]&amp;&amp;L[0][I])){L=C.all(L);}}}}else{if(L===undefined){L=K;}}return L;};F.addMethod=function(K,M,L){if(K&amp;&amp;M&amp;&amp;typeof M===&quot;function&quot;){F.prototype[K]=function(){L=L||this;var O=C.Array(arguments),N;if(O[0]&amp;&amp;O[0] instanceof F){O[0]=O[0]._node;}if(O[1]&amp;&amp;O[1] instanceof F){O[1]=O[1]._node;}O.unshift(this._node);N=F.scrubVal(M.apply(L,O),this);return N;};}else{}};F.importMethod=function(M,K,L){if(typeof K===&quot;string&quot;){L=L||K;F.addMethod(L,M[K],M);}else{C.each(K,function(N){F.importMethod(M,N);});}};F.one=function(N){var K=null,M,L;if(N){if(typeof N===&quot;string&quot;){if(N.indexOf(&quot;doc&quot;)===0){N=C.config.doc;}else{if(N.indexOf(&quot;win&quot;)===0){N=C.config.win;}else{N=C.Selector.query(N,null,true);}}if(!N){return null;}}else{if(N instanceof F){return N;}}L=N._yuid;K=F._instances[L];M=K?K._node:null;if(!K||(M&amp;&amp;N!==M)){K=new F(N);}}return K;};F.get=function(){return F.one.apply(F,arguments);};F.create=function(){return F.get(C.DOM.create.apply(C.DOM,arguments));};F.ATTRS={text:{getter:function(){return C.DOM.getText(this._node);},setter:function(K){C.DOM.setText(this._node,K);return K;}},&quot;options&quot;:{getter:function(){return this._node.getElementsByTagName(&quot;option&quot;);}},&quot;elements&quot;:{getter:function(){return C.all(this._node.elements);}},&quot;children&quot;:{getter:function(){var N=this._node,M=N.children,O,L,K;if(!M){O=N.childNodes;M=[];for(L=0,K=O.length;L&lt;K;++L){if(O[L][H]){M[M.length]=O[L];}}}return C.all(M);}},value:{getter:function(){return C.DOM.getValue(this._node);},setter:function(K){C.DOM.setValue(this._node,K);return K;}},data:{getter:function(){return this._data;},setter:function(K){this._data=K;return K;}}};F.DEFAULT_SETTER=function(K,M){var L=this._stateProxy,N;if(K.indexOf(G)&gt;-1){N=K;K=K.split(G);C.Object.setValue(L,K,M);}else{if(L[K]!==undefined){L[K]=M;}}return M;};F.DEFAULT_GETTER=function(K){var L=this._stateProxy,M;if(K.indexOf&amp;&amp;K.indexOf(G)&gt;-1){M=C.Object.getValue(L,K.split(G));}else{if(L[K]!==undefined){M=L[K];}}return M;};C.augment(F,C.Event.Target);C.mix(F.prototype,{toString:function(){var M=&quot;&quot;,L=this[D]+&quot;: not bound to a node&quot;,K=this._node;if(K){M+=K[E];if(K.id){M+=&quot;#&quot;+K.id;}if(K.className){M+=&quot;.&quot;+K.className.replace(&quot; &quot;,&quot;.&quot;);}M+=&quot; &quot;+this[D];}return M||L;},get:function(K){var L;if(this._getAttr){L=this._getAttr(K);}else{L=this._get(K);}if(L){L=C.Node.scrubVal(L,this);}return L;},_get:function(K){var L=F.ATTRS[K],M;if(L&amp;&amp;L.getter){M=L.getter.call(this);}else{if(F.re_aria.test(K)){M=this._node.getAttribute(K,2);}else{M=F.DEFAULT_GETTER.apply(this,arguments);}}return M;},set:function(K,M){var L=F.ATTRS[K];if(this._setAttr){this._setAttr.apply(this,arguments);}else{if(L&amp;&amp;L.setter){L.setter.call(this,M);}else{if(F.re_aria.test(K)){this._node.setAttribute(K,M);}else{F.DEFAULT_SETTER.apply(this,arguments);}}}return this;},setAttrs:function(K){if(this._setAttrs){this._setAttrs(K);}else{C.Object.each(K,function(L,M){this.set(M,L);},this);}return this;},getAttrs:function(L){var K={};if(this._getAttrs){this._getAttrs(L);}else{C.Array.each(L,function(M,N){K[M]=this.get(M);},this);}return K;},create:F.create,compareTo:function(K){var L=this._node;if(K instanceof C.Node){K=K._node;}return L===K;},inDoc:function(L){var K=this._node;L=(L)?L._node||L:K[B];if(L.documentElement){return C.DOM.contains(L.documentElement,K);}},getById:function(M){var L=this._node,K=C.DOM.byId(M,L[B]);if(K&amp;&amp;C.DOM.contains(L,K)){K=C.one(K);}else{K=null;}return K;},ancestor:function(K){return F.get(C.DOM.elementByAxis(this._node,&quot;parentNode&quot;,J(K)));},previous:function(L,K){return F.get(C.DOM.elementByAxis(this._node,&quot;previousSibling&quot;,J(L),K));},next:function(M,L,K){return F.get(C.DOM.elementByAxis(this._node,&quot;nextSibling&quot;,J(L),K));},one:function(K){return C.one(C.Selector.query(K,this._node,true));},query:function(K){return this.one(K);},all:function(K){return C.all(C.Selector.query(K,this._node));},queryAll:function(K){return this.all(K);},test:function(K){return C.Selector.test(this._node,K);},remove:function(K){var L=this._node;L.parentNode.removeChild(L);if(K){this.destroy(true);}return this;},replace:function(K){var L=this._node;L.parentNode.replaceChild(K,L);return this;},purge:function(L,K){C.Event.purgeElement(this._node,L,K);},destroy:function(K){delete F._instances[this[D]];if(K){this.purge(true);}if(this.unplug){this.unplug();}this._node._yuid=null;this._node=null;this._stateProxy=null;},invoke:function(R,L,K,Q,P,O){var N=this._node,M;if(L&amp;&amp;L instanceof C.Node){L=L._node;}if(K&amp;&amp;K instanceof C.Node){K=K._node;}M=N[R](L,K,Q,P,O);return C.Node.scrubVal(M,this);},each:function(L,K){K=K||this;return L.call(K,this);},item:function(K){return this;},size:function(){return this._node?1:0;},insert:function(M,K){var L=this._node;
+YUI.add(&quot;node-base&quot;,function(C){var G=&quot;.&quot;,E=&quot;nodeName&quot;,I=&quot;nodeType&quot;,B=&quot;ownerDocument&quot;,H=&quot;tagName&quot;,D=&quot;_yuid&quot;,F=function(L){var K=L[D];if(K&amp;&amp;F._instances[K]&amp;&amp;F._instances[K]._node!==L){L[D]=null;}K=C.stamp(L);if(!K){K=C.guid();}this[D]=K;this._node=L;F._instances[K]=this;this._stateProxy=L;if(this._initPlugins){this._initPlugins();}},J=function(L){var K=null;if(L){K=(typeof L===&quot;string&quot;)?function(M){return C.Selector.test(M,L);}:function(M){return L(F.get(M));};}return K;};F.NAME=&quot;Node&quot;;F.re_aria=/^(?:role$|aria-)/;F.DOM_EVENTS={abort:true,beforeunload:true,blur:true,change:true,click:true,close:true,command:true,contextmenu:true,drag:true,dragstart:true,dragenter:true,dragover:true,dragleave:true,dragend:true,drop:true,dblclick:true,error:true,focus:true,keydown:true,keypress:true,keyup:true,load:true,message:true,mousedown:true,mousemove:true,mouseout:true,mouseover:true,mouseup:true,mousemultiwheel:true,mousewheel:true,submit:true,mouseenter:true,mouseleave:true,scroll:true,reset:true,resize:true,select:true,textInput:true,unload:true};C.mix(F.DOM_EVENTS,C.Env.evt.plugins);F._instances={};F.getDOMNode=function(K){if(K){return(K.nodeType)?K:K._node||null;}return null;};F.scrubVal=function(L,K){if(K&amp;&amp;L){if(typeof L===&quot;object&quot;||typeof L===&quot;function&quot;){if(I in L||C.DOM.isWindow(L)){L=F.get(L);}else{if((L.item&amp;&amp;!L._nodes)||(L[0]&amp;&amp;L[0][I])){L=C.all(L);}}}}else{if(L===undefined){L=K;}}return L;};F.addMethod=function(K,M,L){if(K&amp;&amp;M&amp;&amp;typeof M===&quot;function&quot;){F.prototype[K]=function(){L=L||this;var O=C.Array(arguments),N;if(O[0]&amp;&amp;O[0] instanceof F){O[0]=O[0]._node;}if(O[1]&amp;&amp;O[1] instanceof F){O[1]=O[1]._node;}O.unshift(this._node);N=F.scrubVal(M.apply(L,O),this);return N;};}else{}};F.importMethod=function(M,K,L){if(typeof K===&quot;string&quot;){L=L||K;F.addMethod(L,M[K],M);}else{C.each(K,function(N){F.importMethod(M,N);});}};F.one=function(N){var K=null,M,L;if(N){if(typeof N===&quot;string&quot;){if(N.indexOf(&quot;doc&quot;)===0){N=C.config.doc;}else{if(N.indexOf(&quot;win&quot;)===0){N=C.config.win;}else{N=C.Selector.query(N,null,true);}}if(!N){return null;}}else{if(N instanceof F){return N;}}L=N._yuid;K=F._instances[L];M=K?K._node:null;if(!K||(M&amp;&amp;N!==M)){K=new F(N);}}return K;};F.get=function(){return F.one.apply(F,arguments);};F.create=function(){return F.get(C.DOM.create.apply(C.DOM,arguments));};F.ATTRS={text:{getter:function(){return C.DOM.getText(this._node);},setter:function(K){C.DOM.setText(this._node,K);return K;}},&quot;options&quot;:{getter:function(){return this._node.getElementsByTagName(&quot;option&quot;);}},&quot;elements&quot;:{getter:function(){return C.all(this._node.elements);}},&quot;children&quot;:{getter:function(){var N=this._node,M=N.children,O,L,K;if(!M){O=N.childNodes;M=[];for(L=0,K=O.length;L&lt;K;++L){if(O[L][H]){M[M.length]=O[L];}}}return C.all(M);}},value:{getter:function(){return C.DOM.getValue(this._node);},setter:function(K){C.DOM.setValue(this._node,K);return K;}},data:{getter:function(){return this._data;},setter:function(K){this._data=K;return K;}}};F.DEFAULT_SETTER=function(K,M){var L=this._stateProxy,N;if(K.indexOf(G)&gt;-1){N=K;K=K.split(G);C.Object.setValue(L,K,M);}else{if(L[K]!==undefined){L[K]=M;}}return M;};F.DEFAULT_GETTER=function(K){var L=this._stateProxy,M;if(K.indexOf&amp;&amp;K.indexOf(G)&gt;-1){M=C.Object.getValue(L,K.split(G));}else{if(L[K]!==undefined){M=L[K];}}return M;};C.augment(F,C.Event.Target);C.mix(F.prototype,{toString:function(){var M=&quot;&quot;,L=this[D]+&quot;: not bound to a node&quot;,K=this._node;if(K){M+=K[E];if(K.id){M+=&quot;#&quot;+K.id;}if(K.className){M+=&quot;.&quot;+K.className.replace(&quot; &quot;,&quot;.&quot;);}M+=&quot; &quot;+this[D];}return M||L;},get:function(K){var L;if(this._getAttr){L=this._getAttr(K);}else{L=this._get(K);}if(L){L=C.Node.scrubVal(L,this);}return L;},_get:function(K){var L=F.ATTRS[K],M;if(L&amp;&amp;L.getter){M=L.getter.call(this);}else{if(F.re_aria.test(K)){M=this._node.getAttribute(K,2);}else{M=F.DEFAULT_GETTER.apply(this,arguments);}}return M;},set:function(K,M){var L=F.ATTRS[K];if(this._setAttr){this._setAttr.apply(this,arguments);}else{if(L&amp;&amp;L.setter){L.setter.call(this,M);}else{if(F.re_aria.test(K)){this._node.setAttribute(K,M);}else{F.DEFAULT_SETTER.apply(this,arguments);}}}return this;},setAttrs:function(K){if(this._setAttrs){this._setAttrs(K);}else{C.Object.each(K,function(L,M){this.set(M,L);},this);}return this;},getAttrs:function(L){var K={};if(this._getAttrs){this._getAttrs(L);}else{C.Array.each(L,function(M,N){K[M]=this.get(M);},this);}return K;},create:F.create,compareTo:function(K){var L=this._node;if(K instanceof C.Node){K=K._node;}return L===K;},inDoc:function(L){var K=this._node;L=(L)?L._node||L:K[B];if(L.documentElement){return C.DOM.contains(L.documentElement,K);}},getById:function(M){var L=this._node,K=C.DOM.byId(M,L[B]);if(K&amp;&amp;C.DOM.contains(L,K)){K=C.one(K);}else{K=null;}return K;},ancestor:function(K){return F.get(C.DOM.elementByAxis(this._node,&quot;parentNode&quot;,J(K)));},previous:function(L,K){return F.get(C.DOM.elementByAxis(this._node,&quot;previousSibling&quot;,J(L),K));},next:function(M,L,K){return F.get(C.DOM.elementByAxis(this._node,&quot;nextSibling&quot;,J(L),K));},one:function(K){return C.one(C.Selector.query(K,this._node,true));},query:function(K){return this.one(K);},all:function(K){var L=C.all(C.Selector.query(K,this._node));L._query=K;return L;},queryAll:function(K){return this.all(K);},test:function(K){return C.Selector.test(this._node,K);},remove:function(K){var L=this._node;L.parentNode.removeChild(L);if(K){this.destroy(true);}return this;},replace:function(K){var L=this._node;L.parentNode.replaceChild(K,L);return this;},purge:function(L,K){C.Event.purgeElement(this._node,L,K);},destroy:function(K){delete F._instances[this[D]];if(K){this.purge(true);}if(this.unplug){this.unplug();}this._node._yuid=null;this._node=null;this._stateProxy=null;},invoke:function(R,L,K,Q,P,O){var N=this._node,M;if(L&amp;&amp;L instanceof C.Node){L=L._node;}if(K&amp;&amp;K instanceof C.Node){K=K._node;}M=N[R](L,K,Q,P,O);return C.Node.scrubVal(M,this);},each:function(L,K){K=K||this;return L.call(K,this);},item:function(K){return this;},size:function(){return this._node?1:0;},insert:function(M,K){var L=this._node;
 if(M){if(typeof K===&quot;number&quot;){K=this._node.childNodes[K];}if(typeof M!==&quot;string&quot;){if(M._node){M=M._node;}else{if(M._nodes||(!M.nodeType&amp;&amp;M.length)){C.each(M._nodes,function(N){C.DOM.addHTML(L,N,K);});return this;}}}C.DOM.addHTML(L,M,K);}return this;},prepend:function(K){return this.insert(K,0);},append:function(K){return this.insert(K,null);},setContent:function(K){C.DOM.addHTML(this._node,K,&quot;replace&quot;);return this;},hasMethod:function(L){var K=this._node;return(K&amp;&amp;(typeof K===&quot;function&quot;));}},true);C.Node=F;C.get=C.Node.get;C.one=C.Node.one;var A=function(K){if(typeof K===&quot;string&quot;){this._query=K;K=C.Selector.query(K);}else{K=C.Array(K,0,true);}A._instances[C.stamp(this)]=this;this._nodes=K;};A.NAME=&quot;NodeList&quot;;A.getDOMNodes=function(K){return K._nodes;};A._instances=[];A.each=function(K,N,M){var L=K._nodes;if(L&amp;&amp;L.length){C.Array.each(L,N,M||K);}else{}};A.addMethod=function(K,M,L){if(K&amp;&amp;M){A.prototype[K]=function(){var O=[],N=arguments;C.Array.each(this._nodes,function(T){var S=&quot;_yuid&quot;,Q=C.Node._instances[T[S]],R,P;if(!Q){Q=A._getTempNode(T);}R=L||Q;P=M.apply(R,N);if(P!==undefined&amp;&amp;P!==Q){O[O.length]=P;}});return O.length?O:this;};}else{}};A.importMethod=function(M,K,L){if(typeof K===&quot;string&quot;){L=L||K;A.addMethod(K,M[K]);}else{C.each(K,function(N){A.importMethod(M,N);});}};A._getTempNode=function(L){var K=A._tempNode;if(!K){K=C.Node.create(&quot;&lt;div&gt;&lt;/div&gt;&quot;);A._tempNode=K;}K._node=L;K._stateProxy=L;return K;};C.mix(A.prototype,{item:function(K){return C.one((this._nodes||[])[K]);},each:function(M,L){var K=this;C.Array.each(this._nodes,function(O,N){O=C.one(O);return M.call(L||O,O,N,K);});return K;},batch:function(L,K){var M=this;C.Array.each(this._nodes,function(P,O){var N=C.Node._instances[P[D]];if(!N){N=A._getTempNode(P);}return L.call(K||N,N,O,M);});return M;},some:function(M,L){var K=this;return C.Array.some(this._nodes,function(O,N){O=C.one(O);L=L||O;return M.call(L,O,N,K);});},toFrag:function(){return C.one(C.DOM._nl2frag(this._nodes));},indexOf:function(K){return C.Array.indexOf(this._nodes,C.Node.getDOMNode(K));},filter:function(K){return C.all(C.Selector.filter(this._nodes,K));},modulus:function(M,L){L=L||0;var K=[];A.each(this,function(O,N){if(N%M===L){K.push(O);}});return C.all(K);},odd:function(){return this.modulus(2,1);},even:function(){return this.modulus(2);},destructor:function(){delete A._instances[this[D]];},refresh:function(){var L,K=this._nodes;if(this._query){if(K&amp;&amp;K[0]&amp;&amp;K[0].ownerDocument){L=K[0].ownerDocument;}this._nodes=C.Selector.query(this._query,L||C.config.doc);}return this;},on:function(N,M,L){var K=C.Array(arguments,0,true);K.splice(2,0,this._nodes);K[3]=L||this;return C.on.apply(C,K);},after:function(N,M,L){var K=C.Array(arguments,0,true);K.splice(2,0,this._nodes);K[3]=L||this;return C.after.apply(C,K);},size:function(){return this._nodes.length;},toString:function(){var N=&quot;&quot;,M=this[D]+&quot;: not bound to any nodes&quot;,K=this._nodes,L;if(K&amp;&amp;K[0]){L=K[0];N+=L[E];if(L.id){N+=&quot;#&quot;+L.id;}if(L.className){N+=&quot;.&quot;+L.className.replace(&quot; &quot;,&quot;.&quot;);}if(K.length&gt;1){N+=&quot;...[&quot;+K.length+&quot; items]&quot;;}}return N||M;}},true);A.importMethod(C.Node.prototype,[&quot;append&quot;,&quot;detach&quot;,&quot;detachAll&quot;,&quot;insert&quot;,&quot;prepend&quot;,&quot;remove&quot;,&quot;set&quot;,&quot;setContent&quot;]);A.prototype.get=function(L){var O=[],N=this._nodes,M=false,P=A._getTempNode,K,Q;if(N[0]){K=C.Node._instances[N[0]._yuid]||P(N[0]);Q=K._get(L);if(Q&amp;&amp;Q.nodeType){M=true;}}C.Array.each(N,function(R){K=C.Node._instances[R._yuid];if(!K){K=P(R);}Q=K._get(L);if(!M){Q=C.Node.scrubVal(Q,K);}O.push(Q);});return(M)?C.all(O):O;};C.NodeList=A;C.all=function(K){return new A(K);};C.Node.all=C.all;C.Array.each([&quot;replaceChild&quot;,&quot;appendChild&quot;,&quot;insertBefore&quot;,&quot;removeChild&quot;,&quot;hasChildNodes&quot;,&quot;cloneNode&quot;,&quot;hasAttribute&quot;,&quot;removeAttribute&quot;,&quot;scrollIntoView&quot;,&quot;getElementsByTagName&quot;,&quot;focus&quot;,&quot;blur&quot;,&quot;submit&quot;,&quot;reset&quot;,&quot;select&quot;],function(K){C.Node.prototype[K]=function(O,M,L){var N=this.invoke(K,O,M,L);return N;};});F.importMethod(C.DOM,[&quot;contains&quot;,&quot;setAttribute&quot;,&quot;getAttribute&quot;]);C.NodeList.importMethod(C.Node.prototype,[&quot;getAttribute&quot;,&quot;setAttribute&quot;]);(function(L){var K=[&quot;hasClass&quot;,&quot;addClass&quot;,&quot;removeClass&quot;,&quot;replaceClass&quot;,&quot;toggleClass&quot;];L.Node.importMethod(L.DOM,K);L.NodeList.importMethod(L.Node.prototype,K);})(C);if(!document.documentElement.hasAttribute){C.Node.prototype.hasAttribute=function(K){return C.DOM.getAttribute(this._node,K)!==&quot;&quot;;};}C.Node.ATTRS.type={setter:function(L){if(L===&quot;hidden&quot;){try{this._node.type=&quot;hidden&quot;;}catch(K){this.setStyle(&quot;display&quot;,&quot;none&quot;);this._inputType=&quot;hidden&quot;;}}else{try{this._node.type=L;}catch(K){}}return L;},getter:function(){return this._inputType||this._node.type;},_bypassProxy:true};},&quot;@VERSION@&quot;,{requires:[&quot;dom-base&quot;,&quot;selector-css2&quot;,&quot;event-base&quot;]});
\ No newline at end of file</diff>
      <filename>build/node/node-base-min.js</filename>
    </modified>
    <modified>
      <diff>@@ -601,7 +601,9 @@ Y.mix(Node.prototype, {
      * @return {NodeList} A NodeList instance for the matching HTMLCollection/Array.
      */
     all: function(selector) {
-        return Y.all(Y.Selector.query(selector, this._node));
+        var nodelist = Y.all(Y.Selector.query(selector, this._node));
+        nodelist._query = selector;
+        return nodelist;
     },
 
     /**</diff>
      <filename>build/node/node-base.js</filename>
    </modified>
    <modified>
      <diff>@@ -604,7 +604,9 @@ Y.mix(Node.prototype, {
      * @return {NodeList} A NodeList instance for the matching HTMLCollection/Array.
      */
     all: function(selector) {
-        return Y.all(Y.Selector.query(selector, this._node));
+        var nodelist = Y.all(Y.Selector.query(selector, this._node));
+        nodelist._query = selector;
+        return nodelist;
     },
 
     /**</diff>
      <filename>build/node/node-debug.js</filename>
    </modified>
    <modified>
      <diff>@@ -1,3 +1,3 @@
-YUI.add(&quot;node-base&quot;,function(C){var G=&quot;.&quot;,E=&quot;nodeName&quot;,I=&quot;nodeType&quot;,B=&quot;ownerDocument&quot;,H=&quot;tagName&quot;,D=&quot;_yuid&quot;,F=function(L){var K=L[D];if(K&amp;&amp;F._instances[K]&amp;&amp;F._instances[K]._node!==L){L[D]=null;}K=C.stamp(L);if(!K){K=C.guid();}this[D]=K;this._node=L;F._instances[K]=this;this._stateProxy=L;if(this._initPlugins){this._initPlugins();}},J=function(L){var K=null;if(L){K=(typeof L===&quot;string&quot;)?function(M){return C.Selector.test(M,L);}:function(M){return L(F.get(M));};}return K;};F.NAME=&quot;Node&quot;;F.re_aria=/^(?:role$|aria-)/;F.DOM_EVENTS={abort:true,beforeunload:true,blur:true,change:true,click:true,close:true,command:true,contextmenu:true,drag:true,dragstart:true,dragenter:true,dragover:true,dragleave:true,dragend:true,drop:true,dblclick:true,error:true,focus:true,keydown:true,keypress:true,keyup:true,load:true,message:true,mousedown:true,mousemove:true,mouseout:true,mouseover:true,mouseup:true,mousemultiwheel:true,mousewheel:true,submit:true,mouseenter:true,mouseleave:true,scroll:true,reset:true,resize:true,select:true,textInput:true,unload:true};C.mix(F.DOM_EVENTS,C.Env.evt.plugins);F._instances={};F.getDOMNode=function(K){if(K){return(K.nodeType)?K:K._node||null;}return null;};F.scrubVal=function(L,K){if(K&amp;&amp;L){if(typeof L===&quot;object&quot;||typeof L===&quot;function&quot;){if(I in L||C.DOM.isWindow(L)){L=F.get(L);}else{if((L.item&amp;&amp;!L._nodes)||(L[0]&amp;&amp;L[0][I])){L=C.all(L);}}}}else{if(L===undefined){L=K;}}return L;};F.addMethod=function(K,M,L){if(K&amp;&amp;M&amp;&amp;typeof M===&quot;function&quot;){F.prototype[K]=function(){L=L||this;var O=C.Array(arguments),N;if(O[0]&amp;&amp;O[0] instanceof F){O[0]=O[0]._node;}if(O[1]&amp;&amp;O[1] instanceof F){O[1]=O[1]._node;}O.unshift(this._node);N=F.scrubVal(M.apply(L,O),this);return N;};}else{}};F.importMethod=function(M,K,L){if(typeof K===&quot;string&quot;){L=L||K;F.addMethod(L,M[K],M);}else{C.each(K,function(N){F.importMethod(M,N);});}};F.one=function(N){var K=null,M,L;if(N){if(typeof N===&quot;string&quot;){if(N.indexOf(&quot;doc&quot;)===0){N=C.config.doc;}else{if(N.indexOf(&quot;win&quot;)===0){N=C.config.win;}else{N=C.Selector.query(N,null,true);}}if(!N){return null;}}else{if(N instanceof F){return N;}}L=N._yuid;K=F._instances[L];M=K?K._node:null;if(!K||(M&amp;&amp;N!==M)){K=new F(N);}}return K;};F.get=function(){return F.one.apply(F,arguments);};F.create=function(){return F.get(C.DOM.create.apply(C.DOM,arguments));};F.ATTRS={text:{getter:function(){return C.DOM.getText(this._node);},setter:function(K){C.DOM.setText(this._node,K);return K;}},&quot;options&quot;:{getter:function(){return this._node.getElementsByTagName(&quot;option&quot;);}},&quot;elements&quot;:{getter:function(){return C.all(this._node.elements);}},&quot;children&quot;:{getter:function(){var N=this._node,M=N.children,O,L,K;if(!M){O=N.childNodes;M=[];for(L=0,K=O.length;L&lt;K;++L){if(O[L][H]){M[M.length]=O[L];}}}return C.all(M);}},value:{getter:function(){return C.DOM.getValue(this._node);},setter:function(K){C.DOM.setValue(this._node,K);return K;}},data:{getter:function(){return this._data;},setter:function(K){this._data=K;return K;}}};F.DEFAULT_SETTER=function(K,M){var L=this._stateProxy,N;if(K.indexOf(G)&gt;-1){N=K;K=K.split(G);C.Object.setValue(L,K,M);}else{if(L[K]!==undefined){L[K]=M;}}return M;};F.DEFAULT_GETTER=function(K){var L=this._stateProxy,M;if(K.indexOf&amp;&amp;K.indexOf(G)&gt;-1){M=C.Object.getValue(L,K.split(G));}else{if(L[K]!==undefined){M=L[K];}}return M;};C.augment(F,C.Event.Target);C.mix(F.prototype,{toString:function(){var M=&quot;&quot;,L=this[D]+&quot;: not bound to a node&quot;,K=this._node;if(K){M+=K[E];if(K.id){M+=&quot;#&quot;+K.id;}if(K.className){M+=&quot;.&quot;+K.className.replace(&quot; &quot;,&quot;.&quot;);}M+=&quot; &quot;+this[D];}return M||L;},get:function(K){var L;if(this._getAttr){L=this._getAttr(K);}else{L=this._get(K);}if(L){L=C.Node.scrubVal(L,this);}return L;},_get:function(K){var L=F.ATTRS[K],M;if(L&amp;&amp;L.getter){M=L.getter.call(this);}else{if(F.re_aria.test(K)){M=this._node.getAttribute(K,2);}else{M=F.DEFAULT_GETTER.apply(this,arguments);}}return M;},set:function(K,M){var L=F.ATTRS[K];if(this._setAttr){this._setAttr.apply(this,arguments);}else{if(L&amp;&amp;L.setter){L.setter.call(this,M);}else{if(F.re_aria.test(K)){this._node.setAttribute(K,M);}else{F.DEFAULT_SETTER.apply(this,arguments);}}}return this;},setAttrs:function(K){if(this._setAttrs){this._setAttrs(K);}else{C.Object.each(K,function(L,M){this.set(M,L);},this);}return this;},getAttrs:function(L){var K={};if(this._getAttrs){this._getAttrs(L);}else{C.Array.each(L,function(M,N){K[M]=this.get(M);},this);}return K;},create:F.create,compareTo:function(K){var L=this._node;if(K instanceof C.Node){K=K._node;}return L===K;},inDoc:function(L){var K=this._node;L=(L)?L._node||L:K[B];if(L.documentElement){return C.DOM.contains(L.documentElement,K);}},getById:function(M){var L=this._node,K=C.DOM.byId(M,L[B]);if(K&amp;&amp;C.DOM.contains(L,K)){K=C.one(K);}else{K=null;}return K;},ancestor:function(K){return F.get(C.DOM.elementByAxis(this._node,&quot;parentNode&quot;,J(K)));},previous:function(L,K){return F.get(C.DOM.elementByAxis(this._node,&quot;previousSibling&quot;,J(L),K));},next:function(M,L,K){return F.get(C.DOM.elementByAxis(this._node,&quot;nextSibling&quot;,J(L),K));},one:function(K){return C.one(C.Selector.query(K,this._node,true));},query:function(K){return this.one(K);},all:function(K){return C.all(C.Selector.query(K,this._node));},queryAll:function(K){return this.all(K);},test:function(K){return C.Selector.test(this._node,K);},remove:function(K){var L=this._node;L.parentNode.removeChild(L);if(K){this.destroy(true);}return this;},replace:function(K){var L=this._node;L.parentNode.replaceChild(K,L);return this;},purge:function(L,K){C.Event.purgeElement(this._node,L,K);},destroy:function(K){delete F._instances[this[D]];if(K){this.purge(true);}if(this.unplug){this.unplug();}this._node._yuid=null;this._node=null;this._stateProxy=null;},invoke:function(R,L,K,Q,P,O){var N=this._node,M;if(L&amp;&amp;L instanceof C.Node){L=L._node;}if(K&amp;&amp;K instanceof C.Node){K=K._node;}M=N[R](L,K,Q,P,O);return C.Node.scrubVal(M,this);},each:function(L,K){K=K||this;return L.call(K,this);},item:function(K){return this;},size:function(){return this._node?1:0;},insert:function(M,K){var L=this._node;
+YUI.add(&quot;node-base&quot;,function(C){var G=&quot;.&quot;,E=&quot;nodeName&quot;,I=&quot;nodeType&quot;,B=&quot;ownerDocument&quot;,H=&quot;tagName&quot;,D=&quot;_yuid&quot;,F=function(L){var K=L[D];if(K&amp;&amp;F._instances[K]&amp;&amp;F._instances[K]._node!==L){L[D]=null;}K=C.stamp(L);if(!K){K=C.guid();}this[D]=K;this._node=L;F._instances[K]=this;this._stateProxy=L;if(this._initPlugins){this._initPlugins();}},J=function(L){var K=null;if(L){K=(typeof L===&quot;string&quot;)?function(M){return C.Selector.test(M,L);}:function(M){return L(F.get(M));};}return K;};F.NAME=&quot;Node&quot;;F.re_aria=/^(?:role$|aria-)/;F.DOM_EVENTS={abort:true,beforeunload:true,blur:true,change:true,click:true,close:true,command:true,contextmenu:true,drag:true,dragstart:true,dragenter:true,dragover:true,dragleave:true,dragend:true,drop:true,dblclick:true,error:true,focus:true,keydown:true,keypress:true,keyup:true,load:true,message:true,mousedown:true,mousemove:true,mouseout:true,mouseover:true,mouseup:true,mousemultiwheel:true,mousewheel:true,submit:true,mouseenter:true,mouseleave:true,scroll:true,reset:true,resize:true,select:true,textInput:true,unload:true};C.mix(F.DOM_EVENTS,C.Env.evt.plugins);F._instances={};F.getDOMNode=function(K){if(K){return(K.nodeType)?K:K._node||null;}return null;};F.scrubVal=function(L,K){if(K&amp;&amp;L){if(typeof L===&quot;object&quot;||typeof L===&quot;function&quot;){if(I in L||C.DOM.isWindow(L)){L=F.get(L);}else{if((L.item&amp;&amp;!L._nodes)||(L[0]&amp;&amp;L[0][I])){L=C.all(L);}}}}else{if(L===undefined){L=K;}}return L;};F.addMethod=function(K,M,L){if(K&amp;&amp;M&amp;&amp;typeof M===&quot;function&quot;){F.prototype[K]=function(){L=L||this;var O=C.Array(arguments),N;if(O[0]&amp;&amp;O[0] instanceof F){O[0]=O[0]._node;}if(O[1]&amp;&amp;O[1] instanceof F){O[1]=O[1]._node;}O.unshift(this._node);N=F.scrubVal(M.apply(L,O),this);return N;};}else{}};F.importMethod=function(M,K,L){if(typeof K===&quot;string&quot;){L=L||K;F.addMethod(L,M[K],M);}else{C.each(K,function(N){F.importMethod(M,N);});}};F.one=function(N){var K=null,M,L;if(N){if(typeof N===&quot;string&quot;){if(N.indexOf(&quot;doc&quot;)===0){N=C.config.doc;}else{if(N.indexOf(&quot;win&quot;)===0){N=C.config.win;}else{N=C.Selector.query(N,null,true);}}if(!N){return null;}}else{if(N instanceof F){return N;}}L=N._yuid;K=F._instances[L];M=K?K._node:null;if(!K||(M&amp;&amp;N!==M)){K=new F(N);}}return K;};F.get=function(){return F.one.apply(F,arguments);};F.create=function(){return F.get(C.DOM.create.apply(C.DOM,arguments));};F.ATTRS={text:{getter:function(){return C.DOM.getText(this._node);},setter:function(K){C.DOM.setText(this._node,K);return K;}},&quot;options&quot;:{getter:function(){return this._node.getElementsByTagName(&quot;option&quot;);}},&quot;elements&quot;:{getter:function(){return C.all(this._node.elements);}},&quot;children&quot;:{getter:function(){var N=this._node,M=N.children,O,L,K;if(!M){O=N.childNodes;M=[];for(L=0,K=O.length;L&lt;K;++L){if(O[L][H]){M[M.length]=O[L];}}}return C.all(M);}},value:{getter:function(){return C.DOM.getValue(this._node);},setter:function(K){C.DOM.setValue(this._node,K);return K;}},data:{getter:function(){return this._data;},setter:function(K){this._data=K;return K;}}};F.DEFAULT_SETTER=function(K,M){var L=this._stateProxy,N;if(K.indexOf(G)&gt;-1){N=K;K=K.split(G);C.Object.setValue(L,K,M);}else{if(L[K]!==undefined){L[K]=M;}}return M;};F.DEFAULT_GETTER=function(K){var L=this._stateProxy,M;if(K.indexOf&amp;&amp;K.indexOf(G)&gt;-1){M=C.Object.getValue(L,K.split(G));}else{if(L[K]!==undefined){M=L[K];}}return M;};C.augment(F,C.Event.Target);C.mix(F.prototype,{toString:function(){var M=&quot;&quot;,L=this[D]+&quot;: not bound to a node&quot;,K=this._node;if(K){M+=K[E];if(K.id){M+=&quot;#&quot;+K.id;}if(K.className){M+=&quot;.&quot;+K.className.replace(&quot; &quot;,&quot;.&quot;);}M+=&quot; &quot;+this[D];}return M||L;},get:function(K){var L;if(this._getAttr){L=this._getAttr(K);}else{L=this._get(K);}if(L){L=C.Node.scrubVal(L,this);}return L;},_get:function(K){var L=F.ATTRS[K],M;if(L&amp;&amp;L.getter){M=L.getter.call(this);}else{if(F.re_aria.test(K)){M=this._node.getAttribute(K,2);}else{M=F.DEFAULT_GETTER.apply(this,arguments);}}return M;},set:function(K,M){var L=F.ATTRS[K];if(this._setAttr){this._setAttr.apply(this,arguments);}else{if(L&amp;&amp;L.setter){L.setter.call(this,M);}else{if(F.re_aria.test(K)){this._node.setAttribute(K,M);}else{F.DEFAULT_SETTER.apply(this,arguments);}}}return this;},setAttrs:function(K){if(this._setAttrs){this._setAttrs(K);}else{C.Object.each(K,function(L,M){this.set(M,L);},this);}return this;},getAttrs:function(L){var K={};if(this._getAttrs){this._getAttrs(L);}else{C.Array.each(L,function(M,N){K[M]=this.get(M);},this);}return K;},create:F.create,compareTo:function(K){var L=this._node;if(K instanceof C.Node){K=K._node;}return L===K;},inDoc:function(L){var K=this._node;L=(L)?L._node||L:K[B];if(L.documentElement){return C.DOM.contains(L.documentElement,K);}},getById:function(M){var L=this._node,K=C.DOM.byId(M,L[B]);if(K&amp;&amp;C.DOM.contains(L,K)){K=C.one(K);}else{K=null;}return K;},ancestor:function(K){return F.get(C.DOM.elementByAxis(this._node,&quot;parentNode&quot;,J(K)));},previous:function(L,K){return F.get(C.DOM.elementByAxis(this._node,&quot;previousSibling&quot;,J(L),K));},next:function(M,L,K){return F.get(C.DOM.elementByAxis(this._node,&quot;nextSibling&quot;,J(L),K));},one:function(K){return C.one(C.Selector.query(K,this._node,true));},query:function(K){return this.one(K);},all:function(K){var L=C.all(C.Selector.query(K,this._node));L._query=K;return L;},queryAll:function(K){return this.all(K);},test:function(K){return C.Selector.test(this._node,K);},remove:function(K){var L=this._node;L.parentNode.removeChild(L);if(K){this.destroy(true);}return this;},replace:function(K){var L=this._node;L.parentNode.replaceChild(K,L);return this;},purge:function(L,K){C.Event.purgeElement(this._node,L,K);},destroy:function(K){delete F._instances[this[D]];if(K){this.purge(true);}if(this.unplug){this.unplug();}this._node._yuid=null;this._node=null;this._stateProxy=null;},invoke:function(R,L,K,Q,P,O){var N=this._node,M;if(L&amp;&amp;L instanceof C.Node){L=L._node;}if(K&amp;&amp;K instanceof C.Node){K=K._node;}M=N[R](L,K,Q,P,O);return C.Node.scrubVal(M,this);},each:function(L,K){K=K||this;return L.call(K,this);},item:function(K){return this;},size:function(){return this._node?1:0;},insert:function(M,K){var L=this._node;
 if(M){if(typeof K===&quot;number&quot;){K=this._node.childNodes[K];}if(typeof M!==&quot;string&quot;){if(M._node){M=M._node;}else{if(M._nodes||(!M.nodeType&amp;&amp;M.length)){C.each(M._nodes,function(N){C.DOM.addHTML(L,N,K);});return this;}}}C.DOM.addHTML(L,M,K);}return this;},prepend:function(K){return this.insert(K,0);},append:function(K){return this.insert(K,null);},setContent:function(K){C.DOM.addHTML(this._node,K,&quot;replace&quot;);return this;},hasMethod:function(L){var K=this._node;return(K&amp;&amp;(typeof K===&quot;function&quot;));}},true);C.Node=F;C.get=C.Node.get;C.one=C.Node.one;var A=function(K){if(typeof K===&quot;string&quot;){this._query=K;K=C.Selector.query(K);}else{K=C.Array(K,0,true);}A._instances[C.stamp(this)]=this;this._nodes=K;};A.NAME=&quot;NodeList&quot;;A.getDOMNodes=function(K){return K._nodes;};A._instances=[];A.each=function(K,N,M){var L=K._nodes;if(L&amp;&amp;L.length){C.Array.each(L,N,M||K);}else{}};A.addMethod=function(K,M,L){if(K&amp;&amp;M){A.prototype[K]=function(){var O=[],N=arguments;C.Array.each(this._nodes,function(T){var S=&quot;_yuid&quot;,Q=C.Node._instances[T[S]],R,P;if(!Q){Q=A._getTempNode(T);}R=L||Q;P=M.apply(R,N);if(P!==undefined&amp;&amp;P!==Q){O[O.length]=P;}});return O.length?O:this;};}else{}};A.importMethod=function(M,K,L){if(typeof K===&quot;string&quot;){L=L||K;A.addMethod(K,M[K]);}else{C.each(K,function(N){A.importMethod(M,N);});}};A._getTempNode=function(L){var K=A._tempNode;if(!K){K=C.Node.create(&quot;&lt;div&gt;&lt;/div&gt;&quot;);A._tempNode=K;}K._node=L;K._stateProxy=L;return K;};C.mix(A.prototype,{item:function(K){return C.one((this._nodes||[])[K]);},each:function(M,L){var K=this;C.Array.each(this._nodes,function(O,N){O=C.one(O);return M.call(L||O,O,N,K);});return K;},batch:function(L,K){var M=this;C.Array.each(this._nodes,function(P,O){var N=C.Node._instances[P[D]];if(!N){N=A._getTempNode(P);}return L.call(K||N,N,O,M);});return M;},some:function(M,L){var K=this;return C.Array.some(this._nodes,function(O,N){O=C.one(O);L=L||O;return M.call(L,O,N,K);});},toFrag:function(){return C.one(C.DOM._nl2frag(this._nodes));},indexOf:function(K){return C.Array.indexOf(this._nodes,C.Node.getDOMNode(K));},filter:function(K){return C.all(C.Selector.filter(this._nodes,K));},modulus:function(M,L){L=L||0;var K=[];A.each(this,function(O,N){if(N%M===L){K.push(O);}});return C.all(K);},odd:function(){return this.modulus(2,1);},even:function(){return this.modulus(2);},destructor:function(){delete A._instances[this[D]];},refresh:function(){var L,K=this._nodes;if(this._query){if(K&amp;&amp;K[0]&amp;&amp;K[0].ownerDocument){L=K[0].ownerDocument;}this._nodes=C.Selector.query(this._query,L||C.config.doc);}return this;},on:function(N,M,L){var K=C.Array(arguments,0,true);K.splice(2,0,this._nodes);K[3]=L||this;return C.on.apply(C,K);},after:function(N,M,L){var K=C.Array(arguments,0,true);K.splice(2,0,this._nodes);K[3]=L||this;return C.after.apply(C,K);},size:function(){return this._nodes.length;},toString:function(){var N=&quot;&quot;,M=this[D]+&quot;: not bound to any nodes&quot;,K=this._nodes,L;if(K&amp;&amp;K[0]){L=K[0];N+=L[E];if(L.id){N+=&quot;#&quot;+L.id;}if(L.className){N+=&quot;.&quot;+L.className.replace(&quot; &quot;,&quot;.&quot;);}if(K.length&gt;1){N+=&quot;...[&quot;+K.length+&quot; items]&quot;;}}return N||M;}},true);A.importMethod(C.Node.prototype,[&quot;append&quot;,&quot;detach&quot;,&quot;detachAll&quot;,&quot;insert&quot;,&quot;prepend&quot;,&quot;remove&quot;,&quot;set&quot;,&quot;setContent&quot;]);A.prototype.get=function(L){var O=[],N=this._nodes,M=false,P=A._getTempNode,K,Q;if(N[0]){K=C.Node._instances[N[0]._yuid]||P(N[0]);Q=K._get(L);if(Q&amp;&amp;Q.nodeType){M=true;}}C.Array.each(N,function(R){K=C.Node._instances[R._yuid];if(!K){K=P(R);}Q=K._get(L);if(!M){Q=C.Node.scrubVal(Q,K);}O.push(Q);});return(M)?C.all(O):O;};C.NodeList=A;C.all=function(K){return new A(K);};C.Node.all=C.all;C.Array.each([&quot;replaceChild&quot;,&quot;appendChild&quot;,&quot;insertBefore&quot;,&quot;removeChild&quot;,&quot;hasChildNodes&quot;,&quot;cloneNode&quot;,&quot;hasAttribute&quot;,&quot;removeAttribute&quot;,&quot;scrollIntoView&quot;,&quot;getElementsByTagName&quot;,&quot;focus&quot;,&quot;blur&quot;,&quot;submit&quot;,&quot;reset&quot;,&quot;select&quot;],function(K){C.Node.prototype[K]=function(O,M,L){var N=this.invoke(K,O,M,L);return N;};});F.importMethod(C.DOM,[&quot;contains&quot;,&quot;setAttribute&quot;,&quot;getAttribute&quot;]);C.NodeList.importMethod(C.Node.prototype,[&quot;getAttribute&quot;,&quot;setAttribute&quot;]);(function(L){var K=[&quot;hasClass&quot;,&quot;addClass&quot;,&quot;removeClass&quot;,&quot;replaceClass&quot;,&quot;toggleClass&quot;];L.Node.importMethod(L.DOM,K);L.NodeList.importMethod(L.Node.prototype,K);})(C);if(!document.documentElement.hasAttribute){C.Node.prototype.hasAttribute=function(K){return C.DOM.getAttribute(this._node,K)!==&quot;&quot;;};}C.Node.ATTRS.type={setter:function(L){if(L===&quot;hidden&quot;){try{this._node.type=&quot;hidden&quot;;}catch(K){this.setStyle(&quot;display&quot;,&quot;none&quot;);this._inputType=&quot;hidden&quot;;}}else{try{this._node.type=L;}catch(K){}}return L;},getter:function(){return this._inputType||this._node.type;},_bypassProxy:true};},&quot;@VERSION@&quot;,{requires:[&quot;dom-base&quot;,&quot;selector-css2&quot;,&quot;event-base&quot;]});YUI.add(&quot;node-style&quot;,function(A){(function(C){var B=[&quot;getStyle&quot;,&quot;getComputedStyle&quot;,&quot;setStyle&quot;,&quot;setStyles&quot;];C.Node.importMethod(C.DOM,B);C.NodeList.importMethod(C.Node.prototype,B);})(A);},&quot;@VERSION@&quot;,{requires:[&quot;dom-style&quot;,&quot;node-base&quot;]});YUI.add(&quot;node-screen&quot;,function(A){A.each([&quot;winWidth&quot;,&quot;winHeight&quot;,&quot;docWidth&quot;,&quot;docHeight&quot;,&quot;docScrollX&quot;,&quot;docScrollY&quot;],function(B){A.Node.ATTRS[B]={getter:function(){var C=Array.prototype.slice.call(arguments);C.unshift(A.Node.getDOMNode(this));return A.DOM[B].apply(this,C);}};});A.Node.ATTRS.scrollLeft={getter:function(){var B=A.Node.getDOMNode(this);return(&quot;scrollLeft&quot; in B)?B.scrollLeft:A.DOM.docScrollX(B);},setter:function(C){var B=A.Node.getDOMNode(this);if(B){if(&quot;scrollLeft&quot; in B){B.scrollLeft=C;}else{if(B.document||B.nodeType===9){A.DOM._getWin(B).scrollTo(C,A.DOM.docScrollY(B));}}}else{}}};A.Node.ATTRS.scrollTop={getter:function(){var B=A.Node.getDOMNode(this);return(&quot;scrollTop&quot; in B)?B.scrollTop:A.DOM.docScrollY(B);},setter:function(C){var B=A.Node.getDOMNode(this);if(B){if(&quot;scrollTop&quot; in B){B.scrollTop=C;}else{if(B.document||B.nodeType===9){A.DOM._getWin(B).scrollTo(A.DOM.docScrollX(B),C);}}}else{}}};A.Node.importMethod(A.DOM,[&quot;getXY&quot;,&quot;setXY&quot;,&quot;getX&quot;,&quot;setX&quot;,&quot;getY&quot;,&quot;setY&quot;]);A.Node.ATTRS.region={getter:function(){var B=A.Node.getDOMNode(this);if(B&amp;&amp;!B.tagName){if(B.nodeType===9){B=B.documentElement;
 }else{if(B.alert){B=B.document.documentElement;}}}return A.DOM.region(B);}};A.Node.ATTRS.viewportRegion={getter:function(){return A.DOM.viewportRegion(A.Node.getDOMNode(this));}};A.Node.importMethod(A.DOM,&quot;inViewportRegion&quot;);A.Node.prototype.intersect=function(B,D){var C=A.Node.getDOMNode(this);if(B instanceof A.Node){B=A.Node.getDOMNode(B);}return A.DOM.intersect(C,B,D);};A.Node.prototype.inRegion=function(B,D,E){var C=A.Node.getDOMNode(this);if(B instanceof A.Node){B=A.Node.getDOMNode(B);}return A.DOM.inRegion(C,B,D,E);};},&quot;@VERSION@&quot;,{requires:[&quot;dom-screen&quot;]});YUI.add(&quot;node-pluginhost&quot;,function(A){A.Node.plug=function(){var B=A.Array(arguments);B.unshift(A.Node);A.Plugin.Host.plug.apply(A.Base,B);return A.Node;};A.Node.unplug=function(){var B=A.Array(arguments);B.unshift(A.Node);A.Plugin.Host.unplug.apply(A.Base,B);return A.Node;};A.mix(A.Node,A.Plugin.Host,false,null,1);A.NodeList.prototype.plug=function(){var B=arguments;A.NodeList.each(this,function(C){A.Node.prototype.plug.apply(A.one(C),B);});};A.NodeList.prototype.unplug=function(){var B=arguments;A.NodeList.each(this,function(C){A.Node.prototype.unplug.apply(A.one(C),B);});};},&quot;@VERSION@&quot;,{requires:[&quot;node-base&quot;,&quot;pluginhost&quot;]});YUI.add(&quot;node-event-delegate&quot;,function(A){A.Node.prototype.delegate=function(F,E,B){var D=Array.prototype.slice.call(arguments,3),C=[F,E,A.Node.getDOMNode(this),B];C=C.concat(D);return A.delegate.apply(A,C);};},&quot;@VERSION@&quot;,{requires:[&quot;node-base&quot;,&quot;event-delegate&quot;,&quot;pluginhost&quot;]});YUI.add(&quot;node&quot;,function(A){},&quot;@VERSION@&quot;,{skinnable:false,use:[&quot;node-base&quot;,&quot;node-style&quot;,&quot;node-screen&quot;,&quot;node-pluginhost&quot;,&quot;node-event-delegate&quot;],requires:[&quot;dom&quot;,&quot;event-base&quot;,&quot;event-delegate&quot;,&quot;pluginhost&quot;]});
\ No newline at end of file</diff>
      <filename>build/node/node-min.js</filename>
    </modified>
    <modified>
      <diff>@@ -601,7 +601,9 @@ Y.mix(Node.prototype, {
      * @return {NodeList} A NodeList instance for the matching HTMLCollection/Array.
      */
     all: function(selector) {
-        return Y.all(Y.Selector.query(selector, this._node));
+        var nodelist = Y.all(Y.Selector.query(selector, this._node));
+        nodelist._query = selector;
+        return nodelist;
     },
 
     /**</diff>
      <filename>build/node/node.js</filename>
    </modified>
    <modified>
      <diff>@@ -602,7 +602,9 @@ Y.mix(Node.prototype, {
      * @return {NodeList} A NodeList instance for the matching HTMLCollection/Array.
      */
     all: function(selector) {
-        return Y.all(Y.Selector.query(selector, this._node));
+        var nodelist = Y.all(Y.Selector.query(selector, this._node));
+        nodelist._query = selector;
+        return nodelist;
     },
 
     /**</diff>
      <filename>src/node/js/node.js</filename>
    </modified>
    <modified>
      <diff>@@ -853,6 +853,19 @@ YUI({base: '../../../build/', filter: 'raw'}).use('node', 'selector-css3', 'anim
             Assert.areEqual(document.documentElement.scrollHeight, mask.offsetHeight, 'get(&quot;height&quot;)');
             Assert.areEqual(document.documentElement.scrollWidth, mask.offsetWidth, 'get(&quot;width&quot;)');
             mask.className = '';
+        },
+
+        test_refresh: function() {
+            var node = Y.one('#test-nodes'),
+                nodelist = node.all('li');
+
+            nodelist.item(1).remove();
+            ArrayAssert.itemsAreEqual( node.one('li'), nodelist, &quot;Y.one('#test-node').all('li')&quot;);
+            
+            nodelist = Y.all('#test-nodes li');
+            nodelist.item(1).remove();
+
+            ArrayAssert.itemsAreEqual( node.one('li'), nodelist, &quot;Y.one('#test-node').all('li')&quot;);
         }
     })); 
 </diff>
      <filename>src/node/tests/node.html</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>30a62f9fcd62a392949c9254dc87c57dcdabb156</id>
    </parent>
  </parents>
  <author>
    <name>Matt Sweeney</name>
    <email>matt.sweeney@yahoo.com</email>
  </author>
  <url>http://github.com/apm/yui3/commit/f298ab6a0708979e3813c7dc3808fc293e30a1a7</url>
  <id>f298ab6a0708979e3813c7dc3808fc293e30a1a7</id>
  <committed-date>2009-09-25T18:20:08-07:00</committed-date>
  <authored-date>2009-09-25T18:20:08-07:00</authored-date>
  <message>storing query for refresh with NodeList::all return [fixes 2528284]; added test cases</message>
  <tree>258df5848152c21a1610ac51a7b83b4d3168683b</tree>
  <committer>
    <name>Matt Sweeney</name>
    <email>matt.sweeney@yahoo.com</email>
  </committer>
</commit>
