Sign in
webkit
/
WebKit
/
11eb14dbd76d8d03d540dd8285a36f1a3b897832
/
.
/
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>