title: removeAttribute() doesn't work DOM
body: <p>Why doesn't <code>removeAttribute()</code> remove anything in the following code:</p>
  
  <pre><code>&lt;!doctype html&gt;
  &lt;html lang="en"&gt;
  &lt;head&gt;
      &lt;meta charset="utf-8"&gt;
      &lt;title&gt;test&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;div id="myDiv"&gt;
          Element with style.
      &lt;/div&gt;
      &lt;br /&gt;
      &lt;br /&gt;
      &lt;button onclick="DelStyle()"&gt;
          Remove the style attribute from the element
      &lt;/button&gt;
      &lt;script type="text/javascript"&gt;
          function DelStyle() {
              var div = document.getElementById("myDiv");
              console.log(div)
              div.style.border = 'solid #3B3B3D 1px';
              console.log(div)
              div.removeAttribute("style");
              console.log(div)
          }
      &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>