andybalholm / cascadia

CSS selector library in Go
BSD 2-Clause "Simplified" License
697 stars 65 forks source link

Support attribute not equal selector #20

Closed martinlindhe closed 7 years ago

martinlindhe commented 7 years ago

[name!=”value”]

https://api.jquery.com/attribute-not-equal-selector/

andybalholm commented 7 years ago

jQuery-only syntax with an easy workaround is not a high priority for me, but you're welcome to submit a pull request.

martinlindhe commented 7 years ago

I'm not aware what the easy workaround is, do you mean using :not() ?

Sorry for thinking all jquery-like here. I was using this lib indirectly through goquery, thats why.

Also, if ok i think i'll look into making a pr for this

andybalholm commented 7 years ago

Yes, I meant using :not([name="value"])