Path: csiph.com!feeder.erje.net!1.eu.feeder.erje.net!weretis.net!feeder4.news.weretis.net!news.mb-net.net!open-news-network.org!.POSTED.7.225.197.178.dynamic.wless.zhbmb00p-cgnat.res.cust.swisscom.ch!not-for-mail From: Thomas 'PointedEars' Lahn Newsgroups: comp.lang.javascript Subject: Re: What's wrong with using a global id? Date: Sun, 25 Feb 2018 17:37:16 +0100 Organization: PointedEars Software (PES) Lines: 42 Message-ID: <1593727.VLH7GnMWUR@PointedEars.de> References: <1ec3czl2mmgku$.y2l7ncexmwul$.dlg@40tude.net> Reply-To: Thomas 'PointedEars' Lahn Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8Bit Injection-Info: gwaiyur.mb-net.net; posting-host="7.225.197.178.dynamic.wless.zhbmb00p-cgnat.res.cust.swisscom.ch:178.197.225.7"; logging-data="31821"; mail-complaints-to="abuse@open-news-network.org" User-Agent: KNode/4.14.2 X-Face: %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&. On 25 Feb 2018 04:19:12 GMT, Stefan Ram wrote: >> (I also showed them that given >> >>

>> >> this.null >> did not refer to the element while ^^^^^^^^^^^^^^^^^^^^ > `this.null` will never refer to the global `null` object, Straw man. > even if `this` is the global object. The `null` object resides in the > global context, instead of the global object as a property. There is no such thing as a “global null object”. “null” (without quotation marks) is the sole value of the *primitive* Null type. >> document.getElementById( "null" ) >> >> did. ^^^ > It doesn't. What browser did you use to check that? Even MSIE v6 doesn't. Yes, it does. You have confused his argument with your misunderstanding/straw man of it. >> There also might be several other ids that do not >> appear as a global property.) > > As long as there's a variable exist in the global context before the HTML > element is added into the HTML document, the HTML element ID will never > replace the existing variable. The order does not matter at all. -- PointedEars FAQ: | | Twitter: @PointedEars2 | Please do not cc me./Bitte keine Kopien per E-Mail.