padolsey-archive/jquery.fn

Side effect on IE when using multiples selectors

Opened this issue · 0 comments

Here is the problem:

If you have load this plugin in the page, and that's you are using jQuery multiple selectors like $('.classA, .classB, #id1'). Then the matched element get randomly/duplicate sort without calling the sort function, just by using the jQuery selector. And to be more tricky this happens only on IE!!!

I have been trying to debug, and it seems that in jQuery 1.4.2, there is an internal sort function that is call when using multiple selector on IE.
I fix this by renaming the plugin to sortDomElement() and it's ok.