Weaintfoundshit.js
nicosantangelo.github.io
Weaintfoundshit.js
1–10 of 22 posts
Re: Weaintfoundshit.js
#2 var qsa = function(sel){return document.querySelectorAll(sel)};
However, it does not work with: var subqsa = function(el,sel){return el.querySelectorAll(sel);}Re: Weaintfoundshit.js
#3Re: Weaintfoundshit.js
#4Re: Weaintfoundshit.js
#5Thanks, there really aren't enough memes from Spaceballs these days.
Re: Weaintfoundshit.js
#6What am I missing here
Re: Weaintfoundshit.js
#7I don't understand at all. I clicked "I don't get it," then put ".arbitrary" in as a selector, and.....a message comes up saying "Wasn't that awesome?" Nothing else happened. What am I missing here
In jQuery, a selector which doesn't match will evaluate to true, where as .length would be 0. This is a source of bugs, I'm sure, especially for beginners.
Re: Weaintfoundshit.js
#8I don't understand at all. I clicked "I don't get it," then put ".arbitrary" in as a selector, and.....a message comes up saying "Wasn't that awesome?" Nothing else happened. What am I missing here
Re: Weaintfoundshit.js
#9I 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);}
Re: Weaintfoundshit.js
#10I don't understand at all. I clicked "I don't get it," then put ".arbitrary" in as a selector, and.....a message comes up saying "Wasn't that awesome?" Nothing else happened. What am I missing here
https://nicosantangelo.github.io/weaintfoundshit.js/interact...