Sign in
webkit
/
WebKit
/
69084d7b0eae184a8076d683d5feee69bc80ce44
/
.
/
LayoutTests
/
editing
/
selection
/
caret-before-select.html
blob: 093c2d58ea627ae22e3bbfd3e67423ae949bfc6c [
file
] [
log
] [
blame
]
<div
contenteditable
style
=
"
padding
:
2em
;
border
:
5px
solid red
"
><select
id
=
edit
><option>
One
</option></select>
blaa
</div>
<script>
var
start
=
document
.
getElementById
(
"edit"
);
var
s
=
window
.
getSelection
();
s
.
setPosition
(
start
,
0
);
</script>