зеркало из https://github.com/mozilla/gecko-dev.git
18 строки
474 B
HTML
18 строки
474 B
HTML
<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>
|