blob: 7bb9d9f1530a375021ad5acc7f949c3872500a1a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
<!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();
}
function focusTriggered() {
document.documentElement.removeAttribute("class");
}
</script>
</head>
<body onload="test()">
<div contenteditable onfocus="focusTriggered()"></div>
</body>
</html>
|