Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- Manifest: layout/reftests/bidi/reftest.list
<html class="reftest-wait">
<meta charset=utf-8>
<body>
<div id="test" contenteditable>E‮xample</div>
<script>
var elem = document.getElementById("test");
var sel = window.getSelection();
sel.removeAllRanges();
var range = document.createRange();
range.setStart(elem.firstChild, 1);
range.setEnd(elem.firstChild, 2);
sel.addRange(range);
sel.deleteFromDocument();
sel.removeAllRanges();
elem.offsetHeight;
document.documentElement.removeAttribute("class");
</script>