Path: csiph.com!weretis.net!feeder4.news.weretis.net!feeder5.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: Frank Kozuschnik Newsgroups: comp.lang.javascript Subject: Re: A generic question Date: Sun, 30 Apr 2017 22:53:12 +0200 Organization: solani.org Lines: 21 Message-ID: References: <2372a119-d289-48a8-964c-f6ee4ad8bc5a@googlegroups.com> <1tz9urrqejwu3.1ubsg9y0ontbp$.dlg@40tude.net> <3990209.LvFx2qVVIh@PointedEars.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: solani.org 1493585591 31218 eJwFwQkBwDAIA0BLvCmTEzrwL6F36VDcE0hEbi7QghnUVnBddPIrobHde/u35uSN49TgGB8jBBGs (30 Apr 2017 20:53:11 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Sun, 30 Apr 2017 20:53:11 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.0.1 X-User-ID: eJwFwYEBwCAIA7CXZFAo56Cz/59gAk/LU5HIgKDBPxbeLC1tKedQ5DfeN9RhNVpZ67JmO/gAKdIRSg== X-NNTP-Posting-Host: eJwFwQERACAIA8BKIm4ccWBo/wj+w2lUHIIHD+/JZuLCcy+vjHSxYxM37oy6DiROycdiWX8o9hG9 Cancel-Lock: sha1:5Qsi1MVwNXIH4IyXaO3fq7D6MUU= In-Reply-To: <3990209.LvFx2qVVIh@PointedEars.de> Xref: csiph.com comp.lang.javascript:33150 Thomas 'PointedEars' Lahn: > JJ: > >> If a HTML element has an ID, it can be referenced from the global >> object or the `window` object. > > … in Quirks Mode only, as this is a legacy feature. Which browser would nowadays support this "feature" in quirks mode only? Even Firefox started polluting the global object in standards mode some years ago. https://www.w3.org/Bugs/Public/show_bug.cgi?id=11960#c27 > Do not use it. I agree. So does the HTML spec, but nevertheless the spec seems to require it: https://html.spec.whatwg.org/#named-access-on-the-window-object