This project is archived and is in readonly mode.

#1120 ✓resolved
stockholm

Browser Docs - misleading/confusing

Reported by stockholm | December 19th, 2010 @ 05:11 AM | in 1.3.1 (closed)

Documentation at http://mootools.net/docs/core/Browser/Browser is misleading and/or confusing, as written, can cause silent failures in code.

"Browser.ie - (boolean) True if the current browser is Internet Explorer."

While this is true, one would easily assume that it would be False if the browser is not IE but rather is undefined.

Code blocks like this:

if (Browser.ie == False) {
alert('Not in IE');
}

would not evaluate as expected.

This should be mentioned and explained as it can be a real head scratcher.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Shared Ticket Bins

Referenced by

Pages