On Saturday, January 2, 2016 at 7:51:45 PM UTC+1, Simon Lindholm wrote:
>
> http://www.w3.org/TR/html5/browsers.html#named-access-on-the-window-object
>
> It's a DOM0 thing, and has been there since the beginning of time. If you 
> remember how, back in the days, form fields used to be accessed as 
> "document.formname.inputname.value", this is similar to the magic behind 
> that.
>

I have to admit I didn't know about that.

On Sunday, January 3, 2016 at 10:12:50 PM UTC+1, San wrote:
>
>
> Also you can set "use strict" and that will cause also an error (although 
>> at runtime) on each undeclared variable.
>
>
> Thanks... I just read a little about "use strict", which I haven't used 
> before, and tried to use it in this context. It didn't seem to work.
>

"use strict"; obviously doesn't influence this behavior. 
<https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode> 
So it looks like linting is the only option to avoid this.

Sebastian

-- 
You received this message because you are subscribed to the Google Groups 
"Firebug" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/firebug.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/firebug/5995b791-7707-42ac-bcb3-01b9782ee1cf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to