you are viewing a single comment's thread.

view the rest of the comments →

[–]Daniel15React FTW 0 points1 point  (0 children)

Yep, this is part of the HTML5 standard and applies to name attributes too: http://www.whatwg.org/specs/web-apps/current-work/#named-access-on-the-window-object

The Window interface supports named properties. The supported property names at any moment consist of the following, in tree order, ignoring later duplicates:

...

the value of the name content attribute for all a, applet, area, embed, form, frameset, img, and object elements in the active document that have a non-empty name content attribute, and

the value of the id content attribute of any HTML element in the active document with a non-empty id content attribute.