[whatwg] Omission of frame reflection by name onto |window| in ECMAScript browsers

Jeff Walden jwalden+whatwg at MIT.EDU
Fri Jul 6 22:36:40 PDT 2007

Apparently, the windows associated with frames contained within a document are added as properties to the containing document's window; the property name is the frame's name (or id, too?  I don't know), and the property value is the frame's window object.  Here's an example, since that's an unintelligible mouthful:


Section 4.2.4 notes that ECMAScript-enabled implementations must perform this mapping, but using numeric indexes within the document, not with their names.  I think the omission of name-based frame-window lookup is an omission, so that needs to be added.

Note that a description of this behavior should note behavior when a frame whose name is a number is contained within a document (and not at the corresponding index), e.g.:

<iframe name="1" src="..."></iframe> <!-- window[0], but is it also window[1]? -->
<iframe name="foo" src="..."></iframe> <!-- is this window[1], or only window.foo? -->


More information about the whatwg mailing list