HTMLElement.prototype.to_a=function()Array.slice(this); Element.prototype.to_a=function()Array.slice(this); HTMLCollection.prototype.to_a=function()Array.slice(this); XPathResult.prototype.to_a=function(){ var r=[]; switch(this.resultType){ case XPathResult.ORDERED_NODE_SNAPSHOT_TYPE: case XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE: for(var i=0;i<this.snapshotLength;i++)r.push(this.snapshotItem(i));

