code: function(nodes) {
        nodes = nodes || [];
  
        var results = [];
        for (var i = 0; i < nodes.length; ++i) {
          results.push(nodes.item(i));
        }
        return results;
      }
docs: Annoying method to copy nodes to an array, thanks to IE