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