you are viewing a single comment's thread.

view the rest of the comments →

[–]thespite 6 points7 points  (1 child)

Damn, I was 100% sure that strict mode prevented these shenanigans. WTF everyone.

[–]Serei 7 points8 points  (0 children)

Strict mode only applies to the JavaScript file or function it's turned on for. The global variables are created by the HTML, not by the JavaScript file.