2 <script src=
"../../../resources/js-test.js"></script>
4 document
.addEventListener("DOMFocusOut", function() {
5 holder
.removeChild(willBeRemoved
);
6 willBeDisabled
.disabled
= true;
10 description("document.activeElement should return a valid and focusable element.");
11 shouldNotBe("document.activeElement", "willBeDisabled");
12 shouldBeEqualToString("document.activeElement.id", "body");
13 holder
.removeChild(willBeDisabled
);
14 isSuccessfullyParsed();
17 <body id=body
onload=
"test()">
19 <input autofocus id=willBeRemoved
>
20 <input autofocus id=willBeDisabled
>