And thus begins the tale of the dreaded Internet Explorer and just one of the devs who was forced to make it behave.
After looking into the issue for a while it became apparent that the class was not being removed from the element. However upon looking closer with the development tools, you could see the class move in the class name string. It went from being between two other class names to being at the end of the string.
I solved the issue by conditionally not running the auto collapsing code if it was running in IE7. Which fixed everything!
And so endeth the first tale. But it shall not be the last.
Until next time