title: Issue with button reporducer
body: <p>I have some code that is supposed to create a new button when clicked, but its not working, I have tried a lot of troubleshooting, and I cant seem to find the issue.  Thanks in advance to any help!</p>
  
  <p>Here is my code I used:</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 buttonclick() {
    document.write("&lt;button&gt;test&lt;/button");
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
  &lt;body&gt;
  
    &lt;button onclick=("buttonclick()"&gt;test&lt;/button&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>