Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #33150

Re: A generic question

From Frank Kozuschnik <franko@nurfuerspam.de>
Newsgroups comp.lang.javascript
Subject Re: A generic question
Date 2017-04-30 22:53 +0200
Organization solani.org
Message-ID <oe5irn$ufi$1@solani.org> (permalink)
References <2372a119-d289-48a8-964c-f6ee4ad8bc5a@googlegroups.com> <1tz9urrqejwu3.1ubsg9y0ontbp$.dlg@40tude.net> <3990209.LvFx2qVVIh@PointedEars.de>

Show all headers | View raw


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

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

A generic question justaguy <lichunshen84@gmail.com> - 2017-04-29 09:56 -0700
  Re: A generic question JJ <jj4public@vfemail.net> - 2017-04-30 07:59 +0700
    Re: A generic question justaguy <lichunshen84@gmail.com> - 2017-04-29 19:21 -0700
    Re: A generic question Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-04-30 20:16 +0200
      Re: A generic question Frank Kozuschnik <franko@nurfuerspam.de> - 2017-04-30 22:53 +0200
        Legacy properties on Window objects (was: A generic question) Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-05-01 06:10 +0200
        Re: A generic question JJ <jj4public@vfemail.net> - 2017-05-01 18:14 +0700
          Re: A generic question Frank Kozuschnik <franko@nurfuerspam.de> - 2017-05-01 18:07 +0200
  A generic question Ram Tobolski <ramtob@gmail.com> - 2017-04-30 08:01 -0700
    Re: A generic question justaguy <lichunshen84@gmail.com> - 2017-04-30 18:52 -0700

csiph-web