| <div> This test checks that non-form-control elements connect onfocus |
| and onblur to the focus and blur events, which do not bubble, not |
| DOMFocusIn and DOMFocusOut, which do bubble. focus and blur should |
| document.getElementById("console").innerHTML += str + '<br>'; |
| <div id="container" tabindex="-1" contentEditable="true" onfocus="log('focus')" onblur="log('blur')"> |
| <input id="input" type="text"> |
| document.getElementById("input").focus(); |
| document.getElementById("input").blur(); |
| document.getElementById("container").focus(); |
| document.getElementById("container").blur(); |