mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-11 17:57:32 +09:00
import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo
This commit is contained in:
commit
dcd9973243
150858 changed files with 23884658 additions and 0 deletions
21
layout/base/tests/bug602141-4.html
Normal file
21
layout/base/tests/bug602141-4.html
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
<!DOCTYPE HTML><html><head>
|
||||
<script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<span>not editable</span><span id="x" contenteditable="true" spellcheck="false">navigable|unnavigable</span>
|
||||
<script>
|
||||
// Position the caret after "|"
|
||||
var sel = window.getSelection();
|
||||
sel.removeAllRanges();
|
||||
var range = document.createRange();
|
||||
var x = document.getElementById('x');
|
||||
var t = x.firstChild;
|
||||
range.setStart(t, 10);
|
||||
range.setEnd(t, 10);
|
||||
sel.addRange(range);
|
||||
x.focus();
|
||||
|
||||
sendKey('RIGHT'); // Try to move the caret one position to the right
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue