4 testRunner
.dumpAsText();
8 result
= document
.getElementById("result");
10 document
.getElementById('labo').innerHTML
= "<form><select name='labo' id='labo'><option>1</option><option>2</option></select><form>";
11 sel
= document
.getElementById("labo");
12 result
.innerHTML
+= ("1. Found " + sel
+ " (should be a div element)\n");
14 document
.getElementById('labo2').innerHTML
= "<span id='labo2'></<span>";
15 sel
= document
.getElementById("labo2");
16 result
.innerHTML
+= ("2. Found " + sel
+ " (should be a div element)\n");
18 sel
= document
.getElementById("labo3");
19 result
.innerHTML
+= ("3. Found " + sel
+ " (should be a div element)\n");
21 sel
= document
.getElementById("labo4");
22 result
.innerHTML
+= ("4. Found " + sel
+ " (should be a div element)\n");
27 <body onload=
"doTest()">
29 <div id='labo2'
></div>
30 <div id='labo3'
><form><select name='labo3' id='labo3'
><option>1</option><option>2</option></select><form></div>
31 <div id='labo4'
><span name='labo4' id='labo4'
></span></div>
33 <pre id=
"result"></pre>