blob: 129419b7817807e37ff8b281e28eecd441377597 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
<!DOCTYPE html>
<html class="reftest-wait">
<head>
<style>
div {
min-height: 36px;
overflow: auto;
}
</style>
<script>
function test() {
document.querySelector("div").focus();
}
function focusTriggered() {
document.documentElement.removeAttribute("class");
}
</script>
</head>
<body onload="test()">
<div contenteditable onfocus="focusTriggered()"></div>
</body>
</html>
|