3 ms·
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.
by hiccuphippo 3y ago
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 3y agoNice, 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!