4 <script src=
"../../../resources/js-test.js"></script>
8 <div id=
"console"></div>
11 window
.jsTestIsAsync
= true;
15 window
.onload = function()
17 form
= document
.body
.appendChild(document
.createElement("form"));
20 input
= document
.createElement("input");
22 input
.setAttribute("form", "form");
23 form
.elements
.namedItem("input");
28 setTimeout(step2
, 100);
34 str
= typeof form
['input'].form
;
36 str
= 'threw exception';
38 shouldBe("str", "'threw exception'");