зеркало из https://github.com/mozilla/gecko-dev.git
17 строки
440 B
HTML
17 строки
440 B
HTML
<html class="reftest-wait">
|
|
<meta charset=utf-8>
|
|
<body>
|
|
<div id="test" contenteditable>Example</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, 1);
|
|
sel.addRange(range);
|
|
sel.removeAllRanges();
|
|
elem.offsetHeight;
|
|
document.documentElement.removeAttribute("class");
|
|
</script>
|