gecko-dev/layout/reftests/bidi/1366623-1.html

18 строки
474 B
HTML

<html class="reftest-wait">
<meta charset=utf-8>
<body>
<div id="test" contenteditable>E&#x202e;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>