you-dont-need-x / you-dont-need-jquery

The next evolutive state of, "You Might Not Need jQuery", because you definitely don't need jQuery.
The Unlicense
121 stars 10 forks source link

Add special CSS selectors #16

Open a2937 opened 2 months ago

a2937 commented 2 months ago

Selectors like :has certainly go on the list. To be honest when I first saw them, I assumed they were a perfectly normal piece of CSS selectors. But nope, they're contained in jQuery.

It looks like simply using the same strategy for finding child elements will work for has, but I am not sure about the others.