3 ms·
:has doesn't exist but you can do [].map.call(document.querySelectorAll("a img[src$='.gif']"), (e)=>e.closest("a")).filter(e=>e)
by easrng 4y ago
:has doesn't exist but you can do
[].map.call(document.querySelectorAll("a img[src$='.gif']"), (e)=>e.closest("a")).filter(e=>e)
- robertoandred 4y ago:has certainly does exist, but only in Safari. Hopefully Chrome and Firefox will catch up soon.