Just Another Blog

Are you thinking what I'm thinking?

Saturday, July 24, 2004

Mozilla's undetectable document.all support

Next version of Mozilla/Firefox(/Thunderbird?) will support IE's proprietary collection document.all in a undetectable way, i.e. this will (still) not work:

if ( document.all )
    alert( document.all );

But this will work:

alert( document.all );

Stay cool, guys. It is NOT encouraging web developers to code in non-standard way, but just a way to support legacy Web sites that assume everyone use IE.

For web developers that care about standards, they always use document.getElementById (or others methods like getElementsByTagName or getElementsByName).

More about the news:

0 Comments:

Note that troll and spam comments will be deleted without any notification.

Post a Comment

<< Home