You've probably noticed a flurry of MooTools 1.2 updates recently, including updates to both MooTools Core and More. We're happy to give them to you and hope you continue to upgrade your existing MooTools 1.2.x builds. We would like to bring to you attention an upgrade to the MooTools 1.1.2 build and MooTools 1.2.4 build which should be considered a mandatory upgrade for developers still using MooTools 1.1 and MooTools < 1.2.4.
Firefox 3.6 and document.getBoxObjectFor
The reason we stress the upgrade to MooTools 1.2.4 and MooTools 1.1.2 is the removal of the document.getBoxObjectFor
method in the upcoming Mozilla Firefox 3.6 release. Within the browser detection code of MooTools 1.1 and earlier versions of 1.2, MooTools attempts to identify the Gecko engine by checking for the existence of document.getBoxObjectFor
. Mozilla's removal of this method in Firefox 3.6 effectively breaks Gecko detection in MooTools 1.1 and MooTools 1.2.3 down.
"What Effect Does This Have on My MooTools Build?"
Gecko detection is used within MooTools only twice -- both times for event handling:
- Event.relatedTarget - Identifies the related target of any given event. This property is used in multiple places throughout the framework.
- The mousewheel event - Firefox identifies mousewheel events using "DOMMouseScroll" instead of "mousewheel."
These items are at risk to break without upgrading your MooTools build.
The Solution Moving Forward
We have overhauled our browser detection to be based on the user agent string. This has become the standard practice among JavaScript libraries because of potential issues as Firefox 3.6 demonstrates. As browsers grow closer together, looking at “features” to separate them will become more difficult and risky. From this point forward, browser detection will only be used where it would be impossible not to, in order to give the consistent experience across browsers that one would expect from a world-class JavaScript framework.
"Where Can I Download Upgrades?"
You may download the updated MooTools 1.1.2 build on the MooTools 1.1.2 download page. You may also grab MooTools 1.1.2 from GitHub.
You may download the updated MooTools 1.2.4 build on the MooTools 1.2.4 download page. You may also grab MooTools 1.2.4 from GitHub.
Thank you for upgrading. We look forward to continued success with the MooTools javascript framework!
comments powered byDisqus