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