4 <script src=
"../../../resources/js-test.js"></script>
7 var target
= document
.getElementById('target');
8 debug('Calling target.focus()');
9 target
.addEventListener('focus', function(e
) {
10 debug('focus received by ' + target
);
13 shouldBe('document.activeElement', 'target');
17 <body onload=
"runTest()">
18 <label id=
"target" contenteditable
>I'm editable.
</label>
19 <button id=
"button">Just a button
</button>