blob: a1af573d682359b501fefb1e39bfde36b6335abc [file] [log] [blame]
<p>This tests copy/paste of an unrendered select. The options inside of it should not be pasted.</p>
<div id="copy" contenteditable="true">Hello <span style="display:none;"><select><option>1</option></select></span> World</div>
<div id="paste" contenteditable="true"></div>
<script>
var copy = document.getElementById("copy");
copy.focus();
document.execCommand("SelectAll");
document.execCommand("Copy");
var paste = document.getElementById("paste");
paste.focus();
document.execCommand("Paste");
</script>