I want to match all elements in an HTML Dom tree which have any attribute with the value "foo". It should either be a CSS or a XPath selector.
My naive approach would be something like this as css selector:
*[*='foo']
How is the correct syntax?