summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/editing/crashtests/selection-modify-around-input-in-contenteditable.html
blob: 90b615da5cdd2ad51782577a3b90a4106be5e128 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script>
addEventListener("load", () => {
  const selection = window.getSelection();
  const range = selection.getRangeAt(0);
  selection.modify("move", "backward", "character");
  selection.addRange(range);
});
</script>
</head>
<body>
<fieldset contenteditable spellcheck="true">
  <input value="x">
  <table>
    <caption></caption>
  </table>
</fieldset>
</body>
</html>