23 lines
708 B
HTML
23 lines
708 B
HTML
<!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>
|