A while ago I was making some test in Javascript,
and played with a code to get the text of all elements with a certain class,
Now I was trying to make something like this
var inputs = document.querySelectorAll("input[type=text]") ||
(function() {
var ret=[], elems = document.getElementsByTagName('input'), i=0,l=elems.length;
for (;i