blob: f26fbd17cdfb11a2f69f3baab78b8ae3da4de103 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
<!DOCTYPE html>
<html>
<head>
<title>Forward deleting in an empty table cell</title>
<script src="../../resources/dump-as-markup.js"></script>
</head>
<body>
<div id="edit" contentEditable="true">
<table border="1">
<tbody>
<tr><td>1</td><td>2</td></tr>
<tr><td>3</td><td id="fourth"><br></td></tr>
</tbody>
</table>
</div>
<script>
Markup.description("This tests forward deleting in an empty table cell. The cursor shouldn't move.");
var fourthCell = document.getElementById("fourth");
var range = document.createRange();
range.selectNodeContents(fourthCell);
window.getSelection().addRange(range);
document.execCommand("ForwardDelete");
Markup.dump(document.getElementById("edit"));
</script>
</body>
</html>
|