Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / dom / HTMLDocument / document-special-properties-expected.txt
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. This 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 the 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 window object for that iframe.
2
3 Our results match IE.
4
5 Results:
6
7 Nonexistent image name: undefined
8 Image by name (unique): single IMG(name)
9 Image by name (multiple): collection(2) IMG(name) IMG(name)
10 Image by id (unique): undefined
11 Image by id (multiple): undefined
12 Image by id/name mixed: collection(2) IMG(name) IMG(name)
13 Image by id, name present (unique): single IMG(id,name)
14 Image by id, empty name present (unique): single IMG(id)
15 Image by id, name present (multiple): collection(2) IMG(id,name) IMG(id,name)
16 Image by name, id present (unique): single IMG(id,name)
17
18 Nonexistent form name: undefined
19 Form by name (unique): single FORM(name)
20 Form by name (multiple): collection(2) FORM(name) FORM(name)
21 Form by id (unique): undefined
22 Form by id (multiple): undefined
23 Form by id/name mixed: collection(2) FORM(name) FORM(name)
24
25 Nonexistent applet name: undefined
26 Applet by name (unique): single APPLET(name)
27 Applet by name (multiple): collection(2) APPLET(name) APPLET(name)
28 Applet by id (unique): single APPLET(id)
29 Applet by id (multiple): collection(2) APPLET(id) APPLET(id)
30 Applet by id/name mixed: collection(4) APPLET(id) APPLET(name) APPLET(name) APPLET(id)
31
32 Nonexistent object name: undefined
33 Object by name (unique): single OBJECT(name)
34 Object by name (multiple): collection(2) OBJECT(name) OBJECT(name)
35 Object by id (unique): single 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) OBJECT(id)
38 Object by name nested in object with the same name: single OBJECT(name)
39 Object by name nested in object with a different name: single OBJECT(name)
40
41 Nonexistent embed name: undefined
42 Embed by name (unique): single EMBED(name)
43 Embed by name (multiple): collection(2) EMBED(name) EMBED(name)
44 Embed by id (unique): undefined
45 Embed by id (multiple): undefined
46 Embed by id/name mixed: collection(2) EMBED(name) EMBED(name)
47 Embed by name nested in object with the same name: single EMBED(name)
48 Embed by name nested in object with a different name: single EMBED(name)
49 Embed by name nested in param of an object with a different name: single EMBED(name)
50
51 Nonexistent iframe name: undefined
52 Iframe by name (unique): single WINDOW
53 Iframe by name (multiple): collection(2) IFRAME(name) IFRAME(name)
54 Iframe by id (unique): undefined
55 Iframe by id (multiple): undefined
56 Iframe by id/name mixed: collection(2) IFRAME(name) IFRAME(name)
57
58 Nonexistent span name: undefined
59 Span by name (unique): undefined
60 Span by name (multiple): undefined
61 Span by id (unique): undefined
62 Span by id (multiple): undefined
63 Span by id/name mixed: undefined
64
65 Mixed by id: collection(2) APPLET(id) OBJECT(id)
66 Mixed by name: collection(6) IMG(name) FORM(name) APPLET(name) EMBED(name) OBJECT(name) IFRAME(name)
67 Mixed by id (no iframe): collection(2) APPLET(id) OBJECT(id)
68 Mixed by name (no iframe): collection(5) IMG(name) FORM(name) APPLET(name) EMBED(name) OBJECT(name)
69
70 Numeric 0: undefined
71 Numeric 12: undefined
72 Numeric 13: undefined
73
74 Conflicting image: single IMG(name)
75 Conflicting image (custom property): single IMG(name)
76 Conflicting iframe: single WINDOW
77