blob: 378e6e8636fb6f91c0fa37c8fd763b99f7d028c8 [file] [log] [blame]
<!DOCTYPE html>
<html>
<body>
<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 src="../../resources/dump-as-markup.js"></script>
<script>
var copy = document.getElementById("copy");
copy.focus();
document.execCommand("SelectAll");
document.execCommand("Copy");
var paste = document.getElementById("paste");
paste.focus();
document.execCommand("Paste");
Markup.description(document.getElementsByTagName('p')[0].textContent);
Markup.dump('paste');
</script>
</body>
</html>