OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script src="../../http/tests/inspector/inspector-test.js"></script> | 3 <script src="../../http/tests/inspector/inspector-test.js"></script> |
4 <script src="../../http/tests/inspector/console-test.js"></script> | 4 <script src="../../http/tests/inspector/console-test.js"></script> |
5 <script> | 5 <script> |
6 | 6 |
7 function logToConsole() | 7 function logToConsole() |
8 { | 8 { |
9 var formElement = document.getElementById("f"); | 9 var formElement = document.getElementById("f"); |
10 var selectElement = document.getElementById("sel"); | 10 var selectElement = document.getElementById("sel"); |
(...skipping 12 matching lines...) Expand all Loading... |
23 console.log(options); | 23 console.log(options); |
24 | 24 |
25 // HTMLAllCollection | 25 // HTMLAllCollection |
26 var all = document.all; | 26 var all = document.all; |
27 console.log(all); | 27 console.log(all); |
28 | 28 |
29 // HTMLFormControlsCollection (currently shows HTMLCollection) | 29 // HTMLFormControlsCollection (currently shows HTMLCollection) |
30 var formControls = formElement.elements; | 30 var formControls = formElement.elements; |
31 console.log(formControls); | 31 console.log(formControls); |
32 | 32 |
33 // RadioNodeList (currently shows NodeList) | 33 // RadioNodeList |
34 var radioNodeList = formElement.x; | 34 var radioNodeList = formElement.x; |
35 console.log(radioNodeList); | 35 console.log(radioNodeList); |
36 | 36 |
37 // Cross-referencing arrays. | 37 // Cross-referencing arrays. |
38 var arrayX = [1]; | 38 var arrayX = [1]; |
39 var arrayY = [2, arrayX]; | 39 var arrayY = [2, arrayX]; |
40 arrayX.push(arrayY); | 40 arrayX.push(arrayY); |
41 console.log(arrayX); | 41 console.log(arrayX); |
42 | 42 |
43 var nonArray = new NonArrayWithLength(); | 43 var nonArray = new NonArrayWithLength(); |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 <option value="1">one</option> | 91 <option value="1">one</option> |
92 <option value="2">two</option> | 92 <option value="2">two</option> |
93 </select> | 93 </select> |
94 <input type="radio" name="x" value="x1" /> x1 | 94 <input type="radio" name="x" value="x1" /> x1 |
95 <input type="radio" name="x" value="x2" /> x2 | 95 <input type="radio" name="x" value="x2" /> x2 |
96 </form> | 96 </form> |
97 </div> | 97 </div> |
98 | 98 |
99 </body> | 99 </body> |
100 </html> | 100 </html> |
OLD | NEW |