OLD | NEW |
| (Empty) |
1 <html> | |
2 <head> | |
3 <script> | |
4 function editingTest() { | |
5 moveSelectionForwardByLineCommand(); | |
6 extendSelectionForwardByCharacterCommand(); | |
7 extendSelectionForwardByCharacterCommand(); | |
8 extendSelectionForwardByCharacterCommand(); | |
9 } | |
10 </script> | |
11 <script src=../editing.js language="JavaScript" type="text/JavaScript"></script> | |
12 </head> | |
13 | |
14 <body> | |
15 <p><b>Make sure that your window is small enough</b> so that 'don't select this
line' and 'try to select just this line' appear on two different lines. The two
phrases are actually in the same paragraph, there are just lots of spaces in be
tween them.</p> | |
16 <p>This is a test for <a href="https://bugs.webkit.org/show_bug.cgi?id=6632">REG
RESSION: Selection includes spaces that it shouldn't</a>. The test makes sure th
at a word that is right after a line wrap can be selected successfully.</p> | |
17 </p> | |
18 <div id="test" contenteditable style="margin: 1em; border: 1px solid black; word
-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space
;"> | |
19 don't select me &nbs
p;
&n
bsp; &nbs
p;
&n
bsp; &nbs
p;
&n
bsp; &nbs
p;
&n
bsp; &nbs
p;
&n
bsp; &nbs
p;
&n
bsp; &nbs
p;
&n
bsp; &nbs
p;
&n
bsp; &nbs
p;
<i>try to select just this text</i> | |
20 </div> | |
21 <script>runEditingTest()</script> | |
22 </body> | |
23 </html> | |
OLD | NEW |