| 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 applet, 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 applet and 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. | 
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 65 <embed name="embed2" width="0" height="0"></embed> | 65 <embed name="embed2" width="0" height="0"></embed> | 
| 66 <embed name="embed2" width="0" height="0"></embed> | 66 <embed name="embed2" width="0" height="0"></embed> | 
| 67 <embed id="embed3" width="0" height="0"></embed> | 67 <embed id="embed3" width="0" height="0"></embed> | 
| 68 <embed id="embed4" width="0" height="0"></embed> | 68 <embed id="embed4" width="0" height="0"></embed> | 
| 69 <embed id="embed4" width="0" height="0"></embed> | 69 <embed id="embed4" width="0" height="0"></embed> | 
| 70 <embed id="embed5" width="0" height="0"></embed> | 70 <embed id="embed5" width="0" height="0"></embed> | 
| 71 <embed name="embed5" width="0" height="0"></embed> | 71 <embed name="embed5" width="0" height="0"></embed> | 
| 72 <embed name="embed5" width="0" height="0"></embed> | 72 <embed name="embed5" width="0" height="0"></embed> | 
| 73 <embed id="embed5" width="0" height="0"></embed> | 73 <embed id="embed5" width="0" height="0"></embed> | 
| 74 <object name="embed6"><embed name="embed6"></embed></object> | 74 <object name="embed6"><embed name="embed6"></embed></object> | 
|  | 75 <object name="embed7_0"><embed name="embed7"></embed></object> | 
|  | 76 <object name="object8_0" width="0" height="0"><param><embed name="embed8" width=
     "0" height="0"></object></param></object> | 
| 75 | 77 | 
| 76 <object name="object1" width="0" height="0"></object> | 78 <object name="object1" width="0" height="0"></object> | 
| 77 <object name="object2" width="0" height="0"></object> | 79 <object name="object2" width="0" height="0"></object> | 
| 78 <object name="object2" width="0" height="0"></object> | 80 <object name="object2" width="0" height="0"></object> | 
| 79 <object id="object3" width="0" height="0"></object> | 81 <object id="object3" width="0" height="0"></object> | 
| 80 <object id="object4" width="0" height="0"></object> | 82 <object id="object4" width="0" height="0"></object> | 
| 81 <object id="object4" width="0" height="0"></object> | 83 <object id="object4" width="0" height="0"></object> | 
| 82 <object id="object5" width="0" height="0"></object> | 84 <object id="object5" width="0" height="0"></object> | 
| 83 <object name="object5" width="0" height="0"></object> | 85 <object name="object5" width="0" height="0"></object> | 
| 84 <object name="object5" width="0" height="0"></object> | 86 <object name="object5" width="0" height="0"></object> | 
| 85 <object id="object5" width="0" height="0"></object> | 87 <object id="object5" width="0" height="0"></object> | 
|  | 88 <object name="object6" width="0" height="0"><object name="object6" width="0" hei
     ght="0"></object></object> | 
|  | 89 <object name="object7_0" width="0" height="0"><object name="object7" width="0" h
     eight="0"></object></object> | 
| 86 | 90 | 
| 87 <iframe name="iframe1" width="0" height="0"></iframe> | 91 <iframe name="iframe1" width="0" height="0"></iframe> | 
| 88 <iframe name="iframe2" width="0" height="0"></iframe> | 92 <iframe name="iframe2" width="0" height="0"></iframe> | 
| 89 <iframe name="iframe2" width="0" height="0"></iframe> | 93 <iframe name="iframe2" width="0" height="0"></iframe> | 
| 90 <iframe id="iframe3" width="0" height="0"></iframe> | 94 <iframe id="iframe3" width="0" height="0"></iframe> | 
| 91 <iframe id="iframe4" width="0" height="0"></iframe> | 95 <iframe id="iframe4" width="0" height="0"></iframe> | 
| 92 <iframe id="iframe4" width="0" height="0"></iframe> | 96 <iframe id="iframe4" width="0" height="0"></iframe> | 
| 93 <iframe id="iframe5" width="0" height="0"></iframe> | 97 <iframe id="iframe5" width="0" height="0"></iframe> | 
| 94 <iframe name="iframe5" width="0" height="0"></iframe> | 98 <iframe name="iframe5" width="0" height="0"></iframe> | 
| 95 <iframe name="iframe5" width="0" height="0"></iframe> | 99 <iframe name="iframe5" width="0" height="0"></iframe> | 
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 219 testProperty("Applet by id (multiple)", "applet4"); | 223 testProperty("Applet by id (multiple)", "applet4"); | 
| 220 testProperty("Applet by id/name mixed", "applet5"); | 224 testProperty("Applet by id/name mixed", "applet5"); | 
| 221 print("<br>"); | 225 print("<br>"); | 
| 222 | 226 | 
| 223 testProperty("Nonexistent object name", "object0"); | 227 testProperty("Nonexistent object name", "object0"); | 
| 224 testProperty("Object by name (unique)", "object1"); | 228 testProperty("Object by name (unique)", "object1"); | 
| 225 testProperty("Object by name (multiple)", "object2"); | 229 testProperty("Object by name (multiple)", "object2"); | 
| 226 testProperty("Object by id (unique)", "object3"); | 230 testProperty("Object by id (unique)", "object3"); | 
| 227 testProperty("Object by id (multiple)", "object4"); | 231 testProperty("Object by id (multiple)", "object4"); | 
| 228 testProperty("Object by id/name mixed", "object5"); | 232 testProperty("Object by id/name mixed", "object5"); | 
|  | 233 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")
     ; | 
| 229 print("<br>"); | 235 print("<br>"); | 
| 230 | 236 | 
| 231 testProperty("Nonexistent embed name", "embed0"); | 237 testProperty("Nonexistent embed name", "embed0"); | 
| 232 testProperty("Embed by name (unique)", "embed1"); | 238 testProperty("Embed by name (unique)", "embed1"); | 
| 233 testProperty("Embed by name (multiple)", "embed2"); | 239 testProperty("Embed by name (multiple)", "embed2"); | 
| 234 testProperty("Embed by id (unique)", "embed3"); | 240 testProperty("Embed by id (unique)", "embed3"); | 
| 235 testProperty("Embed by id (multiple)", "embed4"); | 241 testProperty("Embed by id (multiple)", "embed4"); | 
| 236 testProperty("Embed by id/name mixed", "embed5"); | 242 testProperty("Embed by id/name mixed", "embed5"); | 
| 237 testProperty("Embed by name nested in object with the same name", "embed6"); | 243 testProperty("Embed by name nested in object with the same name", "embed6"); | 
|  | 244 testProperty("Embed by name nested in object with a different name", "embed7"); | 
|  | 245 testProperty("Embed by name nested in param of an object with a different name",
      "embed8"); | 
| 238 print("<br>"); | 246 print("<br>"); | 
| 239 | 247 | 
| 240 testProperty("Nonexistent iframe name", "iframe0"); | 248 testProperty("Nonexistent iframe name", "iframe0"); | 
| 241 testProperty("Iframe by name (unique)", "iframe1"); | 249 testProperty("Iframe by name (unique)", "iframe1"); | 
| 242 testProperty("Iframe by name (multiple)", "iframe2"); | 250 testProperty("Iframe by name (multiple)", "iframe2"); | 
| 243 testProperty("Iframe by id (unique)", "iframe3"); | 251 testProperty("Iframe by id (unique)", "iframe3"); | 
| 244 testProperty("Iframe by id (multiple)", "iframe4"); | 252 testProperty("Iframe by id (multiple)", "iframe4"); | 
| 245 testProperty("Iframe by id/name mixed", "iframe5"); | 253 testProperty("Iframe by id/name mixed", "iframe5"); | 
| 246 print("<br>"); | 254 print("<br>"); | 
| 247 | 255 | 
| (...skipping 15 matching lines...) Expand all  Loading... | 
| 263 testProperty("Numeric 12", 12); | 271 testProperty("Numeric 12", 12); | 
| 264 testProperty("Numeric 13", 13); | 272 testProperty("Numeric 13", 13); | 
| 265 print("<br>"); | 273 print("<br>"); | 
| 266 | 274 | 
| 267 testProperty("Conflicting image", "body"); | 275 testProperty("Conflicting image", "body"); | 
| 268 testProperty("Conflicting image (custom property)", "custom"); | 276 testProperty("Conflicting image (custom property)", "custom"); | 
| 269 testProperty("Conflicting iframe", "location"); | 277 testProperty("Conflicting iframe", "location"); | 
| 270 | 278 | 
| 271 </script> | 279 </script> | 
| 272 </body> | 280 </body> | 
| OLD | NEW | 
|---|