Finding DOM elements containing a value for any attribute using CSS Selectors
<p>I'm trying to fetch any DOM elements that contain a given phrase in a value of <strong><em>any of its attributes</em></strong>.</p>

<p>For example: detecting any string containing .jpg extension in any of the DOM element's attributes, not just a known one (src for example).</p>

<p>Is there any way to do it with Jsoup / CSS selectors? Or should I manually traverse the whole dom?</p>

<p>If I knew the attribute, I could just match any element with <code>[attr*='.jpg']</code> but it seems there is no "wildcard" for the attribute part of CSS selectors.</p>