Jquery to pure javascript and how the intepreter looks up with dom for elements
<p>I have a couple of questions about the inner workings of JavaScript and how the interpreter handles certain queries</p>

<p>The following JQuery will correctly get all the images that contain the word "flowers" in the src</p>

<pre><code>$("img[src*='flowers']");
</code></pre>

<p>Jquery makes this very simple but what the pure javascript version?</p>

<p>We have a very large DOM. I take it if I do <code>$("*[src*='flowers']")</code> this will greatly affect performance (wildcard element). I'm interested in what the Javascript interpreter does differently between <code>$("img[src*='flowers']")</code> and <code>$("*[src*='flowers']")</code></p>
