Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

element.getPrevious('tag') on IE7 #2475

Nek- opened this Issue Mar 1, 2013 · 6 comments


None yet
4 participants

Nek- commented Mar 1, 2013

Just doesn't work. Return nothing while works on other browsers.


gonchuki commented Mar 15, 2013

Can you provide more context on this? I tried with 1.2.6, 1.3.2 and 1.4.5 and it seems to be working just fine.


Nek- commented Mar 17, 2013

Oh yeah I have one !

This script work on all browsers except IE7 (& IE6 I guess) : https://gist.github.com/Nek-/5015092/bfea1ed0d69951e1ab2304d3347c3f176e7b7193#file-customcheckbox-js-L216

There's a lot of other code there in your custom class that could potentially confound troubleshooting. So what you should do is diff your class with basic tests like this, which like Gonchuki's works as far back as 1.2.6:


Pretty sure you'll find something else is catching you up!

Nek- commented Mar 17, 2013

So what, I take an element. Everything work on all browsers including IE8-9, the problem comes from me ?

In my code the getPrevious method return just null. I don't think it's only me...

(The test was made with mootools 1.4.5)


gonchuki commented Mar 17, 2013

We can't test if you don't provide what your DOM looks like, as @swhiteman says this seems to be something in your code, and by the looks of it there might be something broken in your DOM that the IE6/7 parser is interpreting differently than other browsers.

Please create a fiddle or equivalent (I know jsfiddle.net is broken for IE < 9) where this issue can be reproduced.


ibolmo commented Mar 3, 2014

Closing due to inactivity.

@ibolmo ibolmo closed this Mar 3, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment