I see that the code is called *before* the domready event. What happens if you place the code within a domready listener?
Michal. On Wed, Feb 11, 2009 at 12:50 PM, Michael Katzenmayer <[email protected]> wrote: > > Hello, > > there seems to be something wrong with the way mootools adds events. > Here is a testcase that crashes IE6 as soon as you leave or reload the > page: > > http://katzenmayer.de/testcase.html > > This testcase uses a CSS expression to reproduce the crash. I had > several other crashes with adding events to form elements, but this > was the only one I was able to isolate. > > If you use attachEvent instead of addEvent, the browser does NOT > crash. So I think the bug must be within the addEvent code. > > Regards, > Michael
