This question already has an answer here:
- CSS selector for attribute names based on a wildcard 3 answers
Is it possible to match all nodes that have a data-*
attribute using only CSS?
Here are examples of attributes I would like to match:
data-scope
data-sessionlink
data-visibility-tracking
I could do
*[data-scope] *[data-sessionlink] *[data-visibility-tracking]
but I am looking for something more compact. Furthermore, I don't know all possible data-*
attributes I might encounter in my application.