Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / pasteboard / paste-unrendered-select.html
blob378e6e8636fb6f91c0fa37c8fd763b99f7d028c8
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <p>This tests copy/paste of an unrendered select. The options inside of it should not be pasted.</p>
5 <div id="copy" contenteditable="true">Hello <span style="display:none;"><select><option>1</option></select></span> World</div>
6 <div id="paste" contenteditable="true"></div>
7 <script src="../../resources/dump-as-markup.js"></script>
8 <script>
9 var copy = document.getElementById("copy");
10 copy.focus();
11 document.execCommand("SelectAll");
12 document.execCommand("Copy");
14 var paste = document.getElementById("paste");
15 paste.focus();
16 document.execCommand("Paste");
18 Markup.description(document.getElementsByTagName('p')[0].textContent);
19 Markup.dump('paste');
20 </script>
21 </body>
22 </html>