I like the fact that it works with querySelectorAll! This is compatible with my projects in which I do: var qsa = function(sel){return document.querySelectorAll(sel)}; However, it does not work with: var subqsa = function(el,sel){return el.querySelectorAll(sel);}
You can just:
var queryAll = document.querySelectorAll.bind(document);