blob: 904d804808e064c3be2ade13aa967f0d8f967a82 [file] [log] [blame]
<p>This tests a bug when copying HTML markup inside &lt;pre&gt; tags. When pasted, this content would appear as the rendered form of that markup. You should see markup in the editable region below.</p>
<pre id="pre" contenteditable="true">&lt;input type='button'&gt;foo&lt;br&gt;bar&lt;b&gt;baz&lt;/b&gt;</pre>
<script>
var pre = document.getElementById("pre");
pre.focus();
document.execCommand("SelectAll");
document.execCommand("Cut");
document.execCommand("Paste");
</script>