summaryrefslogtreecommitdiffstats
path: root/layout/base/tests/bug602141-3-ref.html
blob: 8d39318ccd25b9b777aa3770575e9fe4362ad13a (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>
noteditable<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, 11);
  range.setEnd(t, 11);
  sel.addRange(range);
  x.focus();
</script>
</body>
</html>