Sign in
webkit
/
WebKit
/
293423b2e3bc99a3b6b08c9e39c59d8eb89f00e1
/
.
/
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>