OLD | NEW |
1 <body> | 1 <body> |
2 | 2 |
3 <p>This test covers the various ways of accessing DOM elements through | 3 <p>This test covers the various ways of accessing DOM elements through |
4 the document object by name, id or index, directly as properties of | 4 the document object by name, id or index, directly as properties of |
5 the document object. This lookup is supposed to include applet, embed, | 5 the document object. This lookup is supposed to include embed, |
6 form, image, object and iframe by name, but only applet and object by | 6 form, image, object and iframe by name, but only object by |
7 id. It should give the element itself in the case of a single match, | 7 id. It should give the element itself in the case of a single match, |
8 or an HTMLCollection in the case of multiple matches; except that when | 8 or an HTMLCollection in the case of multiple matches; except that when |
9 exactly one item that is an iframe matches, it will give the window | 9 exactly one item that is an iframe matches, it will give the window |
10 object for that iframe. | 10 object for that iframe. |
11 </p> | 11 </p> |
12 | 12 |
13 <p>Our results match IE.</p> | 13 <p>Our results match IE.</p> |
14 | 14 |
15 <hr> | 15 <hr> |
16 | 16 |
(...skipping 26 matching lines...) Expand all Loading... |
43 <form name="form2" width="0" height="0"></form> | 43 <form name="form2" width="0" height="0"></form> |
44 <form name="form2" width="0" height="0"></form> | 44 <form name="form2" width="0" height="0"></form> |
45 <form id="form3" width="0" height="0"></form> | 45 <form id="form3" width="0" height="0"></form> |
46 <form id="form4" width="0" height="0"></form> | 46 <form id="form4" width="0" height="0"></form> |
47 <form id="form4" width="0" height="0"></form> | 47 <form id="form4" width="0" height="0"></form> |
48 <form id="form5" width="0" height="0"></form> | 48 <form id="form5" width="0" height="0"></form> |
49 <form name="form5" width="0" height="0"></form> | 49 <form name="form5" width="0" height="0"></form> |
50 <form name="form5" width="0" height="0"></form> | 50 <form name="form5" width="0" height="0"></form> |
51 <form id="form5" width="0" height="0"></form> | 51 <form id="form5" width="0" height="0"></form> |
52 | 52 |
53 <applet name="applet1" width="0" height="0"></applet> | |
54 <applet name="applet2" width="0" height="0"></applet> | |
55 <applet name="applet2" width="0" height="0"></applet> | |
56 <applet id="applet3" width="0" height="0"></applet> | |
57 <applet id="applet4" width="0" height="0"></applet> | |
58 <applet id="applet4" width="0" height="0"></applet> | |
59 <applet id="applet5" width="0" height="0"></applet> | |
60 <applet name="applet5" width="0" height="0"></applet> | |
61 <applet name="applet5" width="0" height="0"></applet> | |
62 <applet id="applet5" width="0" height="0"></applet> | |
63 | |
64 <embed name="embed1" width="0" height="0"></embed> | 53 <embed name="embed1" width="0" height="0"></embed> |
65 <embed name="embed2" width="0" height="0"></embed> | 54 <embed name="embed2" width="0" height="0"></embed> |
66 <embed name="embed2" width="0" height="0"></embed> | 55 <embed name="embed2" width="0" height="0"></embed> |
67 <embed id="embed3" width="0" height="0"></embed> | 56 <embed id="embed3" width="0" height="0"></embed> |
68 <embed id="embed4" width="0" height="0"></embed> | 57 <embed id="embed4" width="0" height="0"></embed> |
69 <embed id="embed4" width="0" height="0"></embed> | 58 <embed id="embed4" width="0" height="0"></embed> |
70 <embed id="embed5" width="0" height="0"></embed> | 59 <embed id="embed5" width="0" height="0"></embed> |
71 <embed name="embed5" width="0" height="0"></embed> | 60 <embed name="embed5" width="0" height="0"></embed> |
72 <embed name="embed5" width="0" height="0"></embed> | 61 <embed name="embed5" width="0" height="0"></embed> |
73 <embed id="embed5" width="0" height="0"></embed> | 62 <embed id="embed5" width="0" height="0"></embed> |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 <span id="span3" width="0" height="0"></span> | 94 <span id="span3" width="0" height="0"></span> |
106 <span id="span4" width="0" height="0"></span> | 95 <span id="span4" width="0" height="0"></span> |
107 <span id="span4" width="0" height="0"></span> | 96 <span id="span4" width="0" height="0"></span> |
108 <span id="span5" width="0" height="0"></span> | 97 <span id="span5" width="0" height="0"></span> |
109 <span name="span5" width="0" height="0"></span> | 98 <span name="span5" width="0" height="0"></span> |
110 <span name="span5" width="0" height="0"></span> | 99 <span name="span5" width="0" height="0"></span> |
111 <span id="span5" width="0" height="0"></span> | 100 <span id="span5" width="0" height="0"></span> |
112 | 101 |
113 <img id="mixed1" width="0" height="0"> | 102 <img id="mixed1" width="0" height="0"> |
114 <form id="mixed1" width="0" height="0"></form> | 103 <form id="mixed1" width="0" height="0"></form> |
115 <applet id="mixed1" width="0" height="0"></applet> | |
116 <embed id="mixed1" width="0" height="0"></embed> | 104 <embed id="mixed1" width="0" height="0"></embed> |
117 <object id="mixed1" width="0" height="0"></object> | 105 <object id="mixed1" width="0" height="0"></object> |
118 <iframe id="mixed1" width="0" height="0"></iframe> | 106 <iframe id="mixed1" width="0" height="0"></iframe> |
119 <span id="mixed1" width="0" height="0"></span> | 107 <span id="mixed1" width="0" height="0"></span> |
120 | 108 |
121 <img name="mixed2" width="0" height="0"> | 109 <img name="mixed2" width="0" height="0"> |
122 <form name="mixed2" width="0" height="0"></form> | 110 <form name="mixed2" width="0" height="0"></form> |
123 <applet name="mixed2" width="0" height="0"></applet> | |
124 <embed name="mixed2" width="0" height="0"></embed> | 111 <embed name="mixed2" width="0" height="0"></embed> |
125 <object name="mixed2" width="0" height="0"></object> | 112 <object name="mixed2" width="0" height="0"></object> |
126 <iframe name="mixed2" width="0" height="0"></iframe> | 113 <iframe name="mixed2" width="0" height="0"></iframe> |
127 <span name="mixed2" width="0" height="0"></span> | 114 <span name="mixed2" width="0" height="0"></span> |
128 | 115 |
129 <img id="mixed3" width="0" height="0"> | 116 <img id="mixed3" width="0" height="0"> |
130 <form id="mixed3" width="0" height="0"></form> | 117 <form id="mixed3" width="0" height="0"></form> |
131 <applet id="mixed3" width="0" height="0"></applet> | |
132 <embed id="mixed3" width="0" height="0"></embed> | 118 <embed id="mixed3" width="0" height="0"></embed> |
133 <object id="mixed3" width="0" height="0"></object> | 119 <object id="mixed3" width="0" height="0"></object> |
134 <span id="mixed3" width="0" height="0"></span> | 120 <span id="mixed3" width="0" height="0"></span> |
135 | 121 |
136 <img name="mixed4" width="0" height="0"> | 122 <img name="mixed4" width="0" height="0"> |
137 <form name="mixed4" width="0" height="0"></form> | 123 <form name="mixed4" width="0" height="0"></form> |
138 <applet name="mixed4" width="0" height="0"></applet> | |
139 <embed name="mixed4" width="0" height="0"></embed> | 124 <embed name="mixed4" width="0" height="0"></embed> |
140 <object name="mixed4" width="0" height="0"></object> | 125 <object name="mixed4" width="0" height="0"></object> |
141 <span name="mixed4" width="0" height="0"></span> | 126 <span name="mixed4" width="0" height="0"></span> |
142 | 127 |
143 <img name="body" with="0" height="0"> | 128 <img name="body" with="0" height="0"> |
144 <img name="custom" with="0" height="0"> | 129 <img name="custom" with="0" height="0"> |
145 <iframe name="location" with="0" height="0"></iframe> | 130 <iframe name="location" with="0" height="0"></iframe> |
146 | 131 |
147 </div> | 132 </div> |
148 | 133 |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 print("<br>"); | 194 print("<br>"); |
210 | 195 |
211 testProperty("Nonexistent form name", "form0"); | 196 testProperty("Nonexistent form name", "form0"); |
212 testProperty("Form by name (unique)", "form1"); | 197 testProperty("Form by name (unique)", "form1"); |
213 testProperty("Form by name (multiple)", "form2"); | 198 testProperty("Form by name (multiple)", "form2"); |
214 testProperty("Form by id (unique)", "form3"); | 199 testProperty("Form by id (unique)", "form3"); |
215 testProperty("Form by id (multiple)", "form4"); | 200 testProperty("Form by id (multiple)", "form4"); |
216 testProperty("Form by id/name mixed", "form5"); | 201 testProperty("Form by id/name mixed", "form5"); |
217 print("<br>"); | 202 print("<br>"); |
218 | 203 |
219 testProperty("Nonexistent applet name", "applet0"); | |
220 testProperty("Applet by name (unique)", "applet1"); | |
221 testProperty("Applet by name (multiple)", "applet2"); | |
222 testProperty("Applet by id (unique)", "applet3"); | |
223 testProperty("Applet by id (multiple)", "applet4"); | |
224 testProperty("Applet by id/name mixed", "applet5"); | |
225 print("<br>"); | |
226 | |
227 testProperty("Nonexistent object name", "object0"); | 204 testProperty("Nonexistent object name", "object0"); |
228 testProperty("Object by name (unique)", "object1"); | 205 testProperty("Object by name (unique)", "object1"); |
229 testProperty("Object by name (multiple)", "object2"); | 206 testProperty("Object by name (multiple)", "object2"); |
230 testProperty("Object by id (unique)", "object3"); | 207 testProperty("Object by id (unique)", "object3"); |
231 testProperty("Object by id (multiple)", "object4"); | 208 testProperty("Object by id (multiple)", "object4"); |
232 testProperty("Object by id/name mixed", "object5"); | 209 testProperty("Object by id/name mixed", "object5"); |
233 testProperty("Object by name nested in object with the same name", "object6"); | 210 testProperty("Object by name nested in object with the same name", "object6"); |
234 testProperty("Object by name nested in object with a different name", "object7")
; | 211 testProperty("Object by name nested in object with a different name", "object7")
; |
235 print("<br>"); | 212 print("<br>"); |
236 | 213 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 testProperty("Numeric 12", 12); | 248 testProperty("Numeric 12", 12); |
272 testProperty("Numeric 13", 13); | 249 testProperty("Numeric 13", 13); |
273 print("<br>"); | 250 print("<br>"); |
274 | 251 |
275 testProperty("Conflicting image", "body"); | 252 testProperty("Conflicting image", "body"); |
276 testProperty("Conflicting image (custom property)", "custom"); | 253 testProperty("Conflicting image (custom property)", "custom"); |
277 testProperty("Conflicting iframe", "location"); | 254 testProperty("Conflicting iframe", "location"); |
278 | 255 |
279 </script> | 256 </script> |
280 </body> | 257 </body> |
OLD | NEW |