How to write a css-selection to select an element with ([myattr=a] || [myattr=b]) && [secondattr=s] in a one-liner?
At the end of the section 6.3.1. in https://www.w3.org/TR/css3-selectors/#attribute-representation it's said
The following selectors represent a DIALOGUE element whenever it has one of two different values for an attribute character:
DIALOGUE[character=romeo]
DIALOGUE[character=juliet]
I don't get it working, simply. Is it possible in a one-liner at all?
Edit:
to select:
<div class="parentclass"><div class="another" myattr="a" secondattr="s"></div></div>
<div class="parentclass"><div class="another" myattr="b" secondattr="s"></div></div>
but not:
<div class="parentclass"><div class="another" myattr="a" secondattr=""></div></div>
<div class="parentclass"><div class="another" myattr="b" secondattr=""></div></div>
<div class="parentclass"><div class="another" myattr="z" secondattr="s"></div></div>
In a one-liner prefeably, because parentclass
and another
are actually much longer and I need to use this on 5 different sorts of secondattr
, from s to w.