title: Vanilla Javascript equivalent of jQuery not()
body: <p>This is what I'm doing in jQuery:</p>
  
  <pre><code>var text2 = $(node).not("span").text();
  console.log(text2);
  </code></pre>
  
  <p>How do I do this same thing in pure javascript?</p>
  
  <p>I know how to get elements in javascript, but not how to ignore elements and select the rest</p>
  
  <pre><code>var spans = node.getElementsByTagName('span');
  </code></pre>
  
  <p>I need to get every elements within <code>node</code> that does not contain a <code>&lt;span&gt;</code></p>
  
  <p>Here is my HTML</p>
  
  <pre><code>                     &lt;tr&gt;
                              &lt;td&gt;
                                  &lt;span&gt;Farley&lt;/span&gt;
                                  &lt;div class="table-row__expanded-content"&gt;
                                      &lt;data-key&gt;Sex: &lt;/data-key&gt; &lt;data-value&gt;Male&lt;/data-value&gt;&lt;br /&gt;
                                      &lt;data-key&gt;DOB: &lt;/data-key&gt; &lt;data-value&gt;12/08/2010&lt;/data-value&gt; &lt;br /&gt;
                                      &lt;data-key&gt;Weight: &lt;/data-key&gt; &lt;data-value&gt;20 lbs&lt;/data-value&gt; &lt;br /&gt;
                                      &lt;data-key&gt;Location: &lt;/data-key&gt; &lt;data-value&gt;Kennel 2B&lt;/data-value&gt; &lt;br /&gt;
                                      &lt;data-key&gt;Temperament: &lt;/data-key&gt; &lt;data-value&gt;Aggresive&lt;/data-value&gt; &lt;br /&gt;
                                      &lt;data-key&gt;Allergies: &lt;/data-key&gt; &lt;data-value&gt;Sulfa, Penicillin, Peanuts&lt;/data-value&gt;
                                  &lt;/div&gt;
                              &lt;/td&gt;
                              &lt;td&gt;Cunningham, Stephanie&lt;/td&gt;
                              &lt;td&gt;Dog&lt;/td&gt;
                              &lt;td&gt;Pomeranian&lt;/td&gt;
                              &lt;td&gt;PQRST1234567&lt;/td&gt;
                          &lt;/tr&gt;
  </code></pre>