Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<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>