Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(368)

Side by Side Diff: LayoutTests/fast/dom/Window/window-special-properties-expected.txt

Issue 187103002: id of iframe incorrectly sets window name (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add back no-referrer-subframe.html Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 This test covers the various ways of accessing DOM elements through the window o bject by name, id or index, directly as properties of the window object. This lo okup is supposed to include applet, embed, form, image and object by name, and a ll elements by id. It should give the element itself in the case of a single mat ch, or an HTMLCollection in the case of multiple matches; except that when ifram es are involved, it will give the window object for the first iframe match. 1 This test covers the various ways of accessing DOM elements through the window o bject by name, id or index, directly as properties of the window object. This lo okup is supposed to include applet, embed, form, image and object by name, and a ll elements by id. It should give the element itself in the case of a single mat ch, or an HTMLCollection in the case of multiple matches; except that when ifram es are involved, it will give the window object for the first iframe match.
2 2
3 Our results match WinIE in all respects but one. We allow child frame names to t ake precedence over built-in and custom properties of the window object. This is the Mozilla behavior and is required to make some sites work because they use f rame names that collide with built-in properties in Mozilla but not IE - specifi cally "toobar". See Radar 3870317. 3 Our results match WinIE in all respects but one. We allow child frame names to t ake precedence over built-in and custom properties of the window object. This is the Mozilla behavior and is required to make some sites work because they use f rame names that collide with built-in properties in Mozilla but not IE - specifi cally "toobar". See Radar 3870317.
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): single IMG(id) 10 Image by id (unique): single IMG(id)
(...skipping 24 matching lines...) Expand all
35 Nonexistent embed name: undefined 35 Nonexistent embed name: undefined
36 Embed by name (unique): single EMBED(name) 36 Embed by name (unique): single EMBED(name)
37 Embed by name (multiple): collection(2) EMBED(name) EMBED(name) 37 Embed by name (multiple): collection(2) EMBED(name) EMBED(name)
38 Embed by id (unique): single EMBED(id) 38 Embed by id (unique): single EMBED(id)
39 Embed by id (multiple): collection(2) EMBED(id) EMBED(id) 39 Embed by id (multiple): collection(2) EMBED(id) EMBED(id)
40 Embed by id/name mixed: collection(4) EMBED(id) EMBED(name) EMBED(name) EMBED(id ) 40 Embed by id/name mixed: collection(4) EMBED(id) EMBED(name) EMBED(name) EMBED(id )
41 41
42 Nonexistent iframe name: undefined 42 Nonexistent iframe name: undefined
43 Iframe by name (unique): single WINDOW 43 Iframe by name (unique): single WINDOW
44 Iframe by name (multiple): single WINDOW 44 Iframe by name (multiple): single WINDOW
45 Iframe by id (unique): single WINDOW 45 Iframe by id (unique): single IFRAME(id)
46 Iframe by id (multiple): single WINDOW 46 Iframe by id (multiple): collection(2) IFRAME(id) IFRAME(id)
47 Iframe by id/name mixed: single WINDOW 47 Iframe by id/name mixed: single WINDOW
48 48
49 Nonexistent span name: undefined 49 Nonexistent span name: undefined
50 Span by name (unique): undefined 50 Span by name (unique): undefined
51 Span by name (multiple): undefined 51 Span by name (multiple): undefined
52 Span by id (unique): single SPAN(id) 52 Span by id (unique): single SPAN(id)
53 Span by id (multiple): collection(2) SPAN(id) SPAN(id) 53 Span by id (multiple): collection(2) SPAN(id) SPAN(id)
54 Span by id/name mixed: collection(2) SPAN(id) SPAN(id) 54 Span by id/name mixed: collection(2) SPAN(id) SPAN(id)
55 55
56 Mixed by id: single WINDOW 56 Mixed by id: collection(7) IMG(id) FORM(id) APPLET(id) EMBED(id) OBJECT(id) IFRA ME(id) SPAN(id)
57 Mixed by name: single WINDOW 57 Mixed by name: single WINDOW
58 Mixed by id (no iframe): collection(6) IMG(id) FORM(id) APPLET(id) EMBED(id) OBJ ECT(id) SPAN(id) 58 Mixed by id (no iframe): collection(6) IMG(id) FORM(id) APPLET(id) EMBED(id) OBJ ECT(id) SPAN(id)
59 Mixed by name (no iframe): collection(5) IMG(name) FORM(name) APPLET(name) EMBED (name) OBJECT(name) 59 Mixed by name (no iframe): collection(5) IMG(name) FORM(name) APPLET(name) EMBED (name) OBJECT(name)
60 60
61 Numeric 0: single WINDOW 61 Numeric 0: single WINDOW
62 Numeric 12: single WINDOW 62 Numeric 12: single WINDOW
63 Numeric 13: undefined 63 Numeric 13: undefined
64 64
65 Conflicting image name: single OTHER 65 Conflicting image name: single OTHER
66 Conflicting image name (custom property): single OTHER 66 Conflicting image name (custom property): single OTHER
67 Conflicting iframe: single OTHER 67 Conflicting iframe: single OTHER
68 68
69 Input by id (unique): single INPUT(id) 69 Input by id (unique): single INPUT(id)
70 Conflicting input id (navigator): single OTHER 70 Conflicting input id (navigator): single OTHER
71 Conflicting input id (location): single OTHER 71 Conflicting input id (location): single OTHER
72 72
OLDNEW
« no previous file with comments | « LayoutTests/fast/dom/Window/window-collection-length-no-crash.html ('k') | LayoutTests/fast/dom/wrapper-context.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698