title: textContent and innerHTML not changing the DOM
body: <p>Good morning,</p>
  
  <p>I'm hoping someone can help me with this seemingly simple question.  I can't figure out why my <code>textContent</code> or <code>innerHTML</code> won't update my DOM. It shows in my console that it has changed, but for some reason that escapes me I can't figure out why the DOM isn't changing.  Any help is appreciated!</p>
  
  <p>I have the following code</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>        function updateText() {
  
              document.querySelectorAll('.userRoleStyle').forEach(function (e) {
  
                  var grabtext = e.textContent || e.innerHTML;
  
                  if (grabtext === 'SUPER') {
  
                      grabtext = 'Super User';
  
                  }
                  console.log(grabtext);
              })
          };</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>    table td {
          padding: 10px;
      }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;body&gt;
      &lt;table&gt;
          &lt;thead&gt;
              &lt;tr&gt;
  
                  &lt;th&gt;Username&lt;/th&gt;
                  &lt;th&gt;Email address&lt;/th&gt;
                  &lt;th&gt;User Role&lt;/th&gt;
                  &lt;th&gt;&lt;/th&gt;
              &lt;/tr&gt;
          &lt;/thead&gt;
          &lt;tbody&gt;
              &lt;tr&gt;
                  &lt;td&gt;TEST1&lt;/td&gt;
                  &lt;td&gt;test@test.com&lt;/td&gt;
                  &lt;td class="userRoleStyle"&gt;ADMINISTRATOR&lt;/td&gt;
                  &lt;td&gt;
                      &lt;a href="#" onclick="updateText();"&gt;Test&lt;/a&gt;
                  &lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr class="userList"&gt;
                  &lt;td&gt;TEST2&lt;/td&gt;
                  &lt;td&gt;test@test.com&lt;/td&gt;
                  &lt;td class="userRoleStyle"&gt;ADMINISTRATOR&lt;/td&gt;
                  &lt;td&gt;
                      &lt;a href="#" onclick="updateText();"&gt;Test&lt;/a&gt;
                  &lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr class="userList"&gt;
                  &lt;td&gt;TEST3&lt;/td&gt;
                  &lt;td&gt;test@test.com&lt;/td&gt;
                  &lt;td class="userRoleStyle"&gt;SUPER&lt;/td&gt;
                  &lt;td&gt;
                      &lt;a href="#" onclick="updateText();"&gt;Test&lt;/a&gt;
                  &lt;/td&gt;
              &lt;/tr&gt;
          &lt;/tbody&gt;
      &lt;/table&gt;
  &lt;/body&gt;</code></pre>
  </div>
  </div>
  </p>