Ticket #2640 (closed enhancement: invalid)
CSS ~= attribute selector
|Reported by:||alexpkeaton||Owned by:|
There should be a ~= selector to select elements with an exact match where attribute values are separated by spaces. For example, suppose I have this HTML fragment:
<div class="button on"></div> <div class="button off"></div>
I would expect to select the "on" element with this:
The *= selector is similar, but fails in this example because the word "button" contains "on". Alternatively, this works:
But that requires attribute values to be in a specific order, which is not desirable.