Lurker News

Comments (242) 68 threads

Show all comments

Showing thread 40 of 68

hiccuphippo1 reply#
I think you can use null instead of ':not(*)' in the query selector, if only to make it a bit shorter and maybe a bit faster.
Kalabasa#
Nice, it works! I was a bit scared here because the querySelector() MDN docs say

> A string containing one or more selectors to match. This string must be a valid CSS selector string; if it isn't, a SyntaxError exception is thrown.
I'll test it out. If this works good, we shave off 5 bytes towards a 176-byte snippet!