Fair enough. In my experience, the only place where I used Browser.Engine was for fixing ie6 css issues in dynamicly modified content, but I always try to put most of the css in css files. I guess including some .js in conditionnal comments may be a good way to go, too.
Maybe it would worth it to drop a note on mootools.net/docs/core/Browser to warn mootools users that user agent detection should be avoided as much as possible. On 15:03 Wed 13 Oct , אריה גלזר wrote: > The thing is - for almost all scenarios - using browser detection is already > the wrong thing to do. You shouldn't be doing: > > if (Browser.ie) var xhr = new ObjectX(...) > > but rather - > > if (!(XMLHttpRequest in document)) .... > > And so the only scenario when you will be using Browser is when feature > detection won't cut it - thus user-agent is a good and valid choice > -- Olivier El Mekki.
