Discussion:
document.all support on Firefox trunk?
alex_mayorga
2010-10-18 17:17:02 UTC
Permalink
Hello everyone,

I've landed here from https://bugzilla.mozilla.org/show_bug.cgi?id=248549#c85

The nightly build I use is being sniffed by the piece of "code" below,
please let me know what's the status of document.all support on
Firefox trunk.

Thanks,
Alex

function checkBrowser(){
if (!(document.all))
{
window.location.replace("netscape.asp");
}
Boris Zbarsky
2010-10-18 17:26:17 UTC
Permalink
Post by alex_mayorga
please let me know what's the status of document.all support on
Firefox trunk.
If you try to use it, in quirks mode, it will work.

If you evaluate document.all as a boolean expression, it will test false.

-Boris
alex_mayorga
2010-10-18 17:30:10 UTC
Permalink
Post by Boris Zbarsky
Post by alex_mayorga
please let me know what's the status of document.all support on
Firefox trunk.
If you try to use it, in quirks mode, it will work.
If you evaluate document.all as a boolean expression, it will test false.
-Boris
Thanks Boris!

So, other than evangelism, no way for me to use that website, right?

Alex
Boris Zbarsky
2010-10-18 17:42:31 UTC
Permalink
Post by alex_mayorga
So, other than evangelism, no way for me to use that website, right?
If it blocks all browsers in which document.all tests false (i.e.
everyone except MSIE), then yes...

-Boris

Loading...