OLD | NEW |
1 This test covers the various ways of accessing DOM elements through the document
object by name, id or index, directly as properties of the document object. Thi
s lookup is supposed to include applet, embed, form, image, object and iframe by
name, but only applet and object by id. It should give the element itself in th
e case of a single match, or an HTMLCollection in the case of multiple matches;
except that when exactly one item that is an iframe matches, it will give the wi
ndow object for that iframe. | 1 This test covers the various ways of accessing DOM elements through the document
object by name, id or index, directly as properties of the document object. Thi
s lookup is supposed to include applet, embed, form, image, object and iframe by
name, but only applet and object by id. It should give the element itself in th
e case of a single match, or an HTMLCollection in the case of multiple matches;
except that when exactly one item that is an iframe matches, it will give the wi
ndow object for that iframe. |
2 | 2 |
3 Our results match IE. | 3 Our results match IE. |
4 | 4 |
5 Results: | 5 Results: |
6 | 6 |
7 Nonexistent image name: undefined | 7 Nonexistent image name: undefined |
8 Image by name (unique): single IMG(name) | 8 Image by name (unique): single IMG(name) |
9 Image by name (multiple): collection(2) IMG(name) IMG(name) | 9 Image by name (multiple): collection(2) IMG(name) IMG(name) |
10 Image by id (unique): undefined | 10 Image by id (unique): undefined |
(...skipping 24 matching lines...) Expand all Loading... |
35 Object by id (unique): single OBJECT(id) | 35 Object by id (unique): single OBJECT(id) |
36 Object by id (multiple): collection(2) OBJECT(id) OBJECT(id) | 36 Object by id (multiple): collection(2) OBJECT(id) OBJECT(id) |
37 Object by id/name mixed: collection(4) OBJECT(id) OBJECT(name) OBJECT(name) OBJE
CT(id) | 37 Object by id/name mixed: collection(4) OBJECT(id) OBJECT(name) OBJECT(name) OBJE
CT(id) |
38 | 38 |
39 Nonexistent embed name: undefined | 39 Nonexistent embed name: undefined |
40 Embed by name (unique): single EMBED(name) | 40 Embed by name (unique): single EMBED(name) |
41 Embed by name (multiple): collection(2) EMBED(name) EMBED(name) | 41 Embed by name (multiple): collection(2) EMBED(name) EMBED(name) |
42 Embed by id (unique): undefined | 42 Embed by id (unique): undefined |
43 Embed by id (multiple): undefined | 43 Embed by id (multiple): undefined |
44 Embed by id/name mixed: collection(2) EMBED(name) EMBED(name) | 44 Embed by id/name mixed: collection(2) EMBED(name) EMBED(name) |
45 Embed by name nested in object with the same name: single EMBED(name) | 45 Embed by name nested in object with the same name: collection(2) OBJECT(name) EM
BED(name) |
46 | 46 |
47 Nonexistent iframe name: undefined | 47 Nonexistent iframe name: undefined |
48 Iframe by name (unique): single WINDOW | 48 Iframe by name (unique): single WINDOW |
49 Iframe by name (multiple): collection(2) IFRAME(name) IFRAME(name) | 49 Iframe by name (multiple): collection(2) IFRAME(name) IFRAME(name) |
50 Iframe by id (unique): undefined | 50 Iframe by id (unique): undefined |
51 Iframe by id (multiple): undefined | 51 Iframe by id (multiple): undefined |
52 Iframe by id/name mixed: collection(2) IFRAME(name) IFRAME(name) | 52 Iframe by id/name mixed: collection(2) IFRAME(name) IFRAME(name) |
53 | 53 |
54 Nonexistent span name: undefined | 54 Nonexistent span name: undefined |
55 Span by name (unique): undefined | 55 Span by name (unique): undefined |
56 Span by name (multiple): undefined | 56 Span by name (multiple): undefined |
57 Span by id (unique): undefined | 57 Span by id (unique): undefined |
58 Span by id (multiple): undefined | 58 Span by id (multiple): undefined |
59 Span by id/name mixed: undefined | 59 Span by id/name mixed: undefined |
60 | 60 |
61 Mixed by id: collection(2) APPLET(id) OBJECT(id) | 61 Mixed by id: collection(2) APPLET(id) OBJECT(id) |
62 Mixed by name: collection(6) IMG(name) FORM(name) APPLET(name) EMBED(name) OBJEC
T(name) IFRAME(name) | 62 Mixed by name: collection(6) IMG(name) FORM(name) APPLET(name) EMBED(name) OBJEC
T(name) IFRAME(name) |
63 Mixed by id (no iframe): collection(2) APPLET(id) OBJECT(id) | 63 Mixed by id (no iframe): collection(2) APPLET(id) OBJECT(id) |
64 Mixed by name (no iframe): collection(5) IMG(name) FORM(name) APPLET(name) EMBED
(name) OBJECT(name) | 64 Mixed by name (no iframe): collection(5) IMG(name) FORM(name) APPLET(name) EMBED
(name) OBJECT(name) |
65 | 65 |
66 Numeric 0: undefined | 66 Numeric 0: undefined |
67 Numeric 12: undefined | 67 Numeric 12: undefined |
68 Numeric 13: undefined | 68 Numeric 13: undefined |
69 | 69 |
70 Conflicting image: single IMG(name) | 70 Conflicting image: single IMG(name) |
71 Conflicting image (custom property): single IMG(name) | 71 Conflicting image (custom property): single IMG(name) |
72 Conflicting iframe: single WINDOW | 72 Conflicting iframe: single WINDOW |
73 | 73 |
OLD | NEW |