1 <body contenteditable=true
>
2 <p contenteditable=false
>Test for
<a href=
"https://bugs.webkit.org/show_bug.cgi?id=39946">https://bugs.webkit.org/show_bug.cgi?id=
39946</a>
3 another case of infinite recursion in Position::getInlineBoxAndOffset(). This test passes if it does not crash.
</p>
4 <div id=
"start">start dragging here and drag right
<div>
5 <div style=
"-webkit-user-modify: read-only; display:inline-block;">
6 <div style=
"display:none;">some text
</div>
7 <div style=
"width: 550px;">
12 if (window
.testRunner
)
13 testRunner
.dumpAsText();
15 var selection
= getSelection();
16 var start
= document
.getElementById("start");
17 selection
.setBaseAndExtent(start
, 1, start
, 1);
18 selection
.modify("move", "forward", "line");
19 selection
.modify("move", "backward", "character");