2010-11-22 11:13:37 +03:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html class="reftest-wait">
|
|
|
|
<head>
|
|
|
|
<style>
|
|
|
|
div {
|
|
|
|
min-height: 36px;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
<script>
|
|
|
|
function test() {
|
|
|
|
var d = document.querySelector("div");
|
|
|
|
d.appendChild(document.createTextNode(""));
|
|
|
|
d.focus();
|
|
|
|
}
|
2011-08-24 23:49:25 +04:00
|
|
|
function focusTriggered() {
|
2010-11-22 11:13:37 +03:00
|
|
|
document.documentElement.removeAttribute("class");
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</head>
|
|
|
|
<body onload="test()">
|
2011-08-24 23:49:25 +04:00
|
|
|
<div contenteditable onfocus="focusTriggered()"></div>
|
2010-11-22 11:13:37 +03:00
|
|
|
</body>
|
|
|
|
</html>
|