Javascript .querySelector find <div> by innerTEXT : <p>How can I find DIV with certain text? For example:</p>

<pre><code>&lt;div&gt;
SomeText, text continues.
&lt;/div&gt;
</code></pre>

<p>Trying to use something like this:</p>

<pre><code>var text = document.querySelector('div[SomeText*]').innerTEXT;
alert(text);
</code></pre>

<p>But ofcourse it will not work. How can I do it?</p>
