16 document
.getElementById('mydiv').focus();
17 document
.getElementById('mydiv').blur();
19 exceptions
+= "Exception: " + e
+ "\n";
24 document
.getElementById('result').blur();
26 exceptions
+= "Exception: " + e
+ "\n";
30 if (pass1
&& pass2
&& pass3
) {
31 result
= "Test Passed.";
33 result
= "Test Failed.";
36 document
.getElementById('result').innerHTML
= result
;
37 document
.getElementById('exc').innerHTML
= exceptions
;
41 <body onload=
"blurIt()">
42 This test will try to call blur() on a contenteditable div, and then a normal div.
43 <div id=
"mydiv" onblur=
"pass3 = true;" style=
"border-style:solid" contenteditable
>contentEditable div
</div>
44 <div id=
"result"></div>