1 <script src=../editing.js
language=
"JavaScript" type=
"text/JavaScript" ></script>
3 <p>This tests smart paste of a fragment that ends in a select element. There should be spaces added before and after the inserted content.
</p>
4 <div contenteditable=
"true" id=
"copy"><select><option>1</option><option>2</option><option>3</option></select></div>
5 <div contenteditable=
"true" id=
"paste">xx
</div>
8 var copy
= document
.getElementById("copy");
9 doubleClick(copy
.offsetLeft
, copy
.offsetTop
);
10 document
.execCommand("Copy");
12 var paste
= document
.getElementById("paste");
13 var sel
= window
.getSelection();
14 sel
.collapse(paste
, 0);
15 sel
.modify("move", "forward", "character");
16 document
.execCommand("Paste");