How can i build a nodelist, which is reference to the selected node? Example document.querySelectorAll(\'tr\') returns a nodelist contains all the tr element no
If you don't want to move things around in the DOM, don't use the methods that move things around!
var nl = new Array(); var el = document.querySelectorAll('tr'); for ( var a = 0; a < 2 && a < el.length; a++) { nl.push(el[a]); }