Equals operator not symmetric in IE8?

Today I stumbled on the weirdest bug. It seems that the equals operator (==) is not symmetric in IE8.
Meaning that sometimes, even though a == b yields true, b == a will yield false.
I discovered one such scenario when working on my project Packages JS.

Have a look at my test page. Does your browser handle it correctly?
Please leave a comment here with Browser and OS version and test result. I am curious about other browsers and versions.


  1. I had a friend test on IE9 RC (on Windows 7) and it turns out this issue is fixed there.

  2. Just tested in IE6 and the bug is present there as well. I have not tested in IE7, but seeing as it’s present in both IE6 and IE8 it’s a safe bet that it’s also in IE7.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s