andybalholm / cascadia

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

unknown pseudoclass :checked #33

Closed winteraz closed 7 years ago

winteraz commented 7 years ago

I'm trying to match the selected value of a "select" element. This throws the error above so I guess "checked" is not supported? css.Compile(`select[name="language"] > option:checked`)

winteraz commented 7 years ago

I've found that I can get what I was looking for using select[name="language"] > option[selected] so I'm closing this. Feel free to reopen if my issue was actually valid.