Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #34744
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: What's wrong with using a global id? |
| Date | 2018-02-25 17:37 +0100 |
| Organization | PointedEars Software (PES) |
| Message-ID | <1593727.VLH7GnMWUR@PointedEars.de> (permalink) |
| References | <global-ids-20180225051010@ram.dialup.fu-berlin.de> <1ec3czl2mmgku$.y2l7ncexmwul$.dlg@40tude.net> |
JJ wrote:
> On 25 Feb 2018 04:19:12 GMT, Stefan Ram wrote:
>> (I also showed them that given
>>
>> <p id="null">
>>
>> 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: <http://PointedEars.de/faq> | <http://PointedEars.de/es-matrix>
<https://github.com/PointedEars> | <http://PointedEars.de/wsvn/>
Twitter: @PointedEars2 | Please do not cc me./Bitte keine Kopien per E-Mail.
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: What's wrong with using a global id? JJ <jj4public@vfemail.net> - 2018-02-25 22:20 +0700
Re: What's wrong with using a global id? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2018-02-25 17:37 +0100
Re: What's wrong with using a global id? Julio Di Egidio <julio@diegidio.name> - 2018-02-25 09:16 -0800
Re: What's wrong with using a global id? Julio Di Egidio <julio@diegidio.name> - 2018-02-25 10:19 -0800
Re: What's wrong with using a global id? Jon Ribbens <jon+usenet@unequivocal.eu> - 2018-02-26 15:18 +0000
Re: What's wrong with using a global id? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2018-03-02 17:06 +0100
csiph-web