Suggestion to extend browser pre-defined globals

10 views
Skip to first unread message

Peter Chamberlin

unread,
Aug 9, 2013, 7:35:57 AM8/9/13
to jsh...@googlegroups.com
If I validate the following code with the browser:true option set:

var test = (parent === self);

then I receive warning of:

'self' is not defined.

Window methods such as alert() and console() aren't accepted either, but that's only because the devel:true option does, given the association with rapid debugging.

I think that 'self' should be accepted for the browser:true option, given that both 'parent' and 'top' already are.

I am aware of IE's quirk where (window === self) is false, but that's also the case for (window === window.self).
Reply all
Reply to author
Forward
0 new messages