summaryrefslogtreecommitdiff
path: root/layout/base/tests/bug602141-2-ref.html
blob: f54518a024489e8606fef54a82034d22b82ab8a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<!DOCTYPE HTML><html><head>
</head>
<body>
<span id="x" contenteditable="true" spellcheck="false">navigable__|unnavigable</span><br />
<script>
  // Position the caret after "u"
  var sel = window.getSelection();
  sel.removeAllRanges();
  var range = document.createRange();
  var x = document.getElementById('x');
  var t = x.firstChild;
  range.setStart(t, 13);
  range.setEnd(t, 13);
  sel.addRange(range);
  x.focus();
</script>
</body>
</html>