Going crazy over one closing bracket

Jup, that’s what I did today. I was working on a website (which isn’t live yet – so I can’t show it) and somehow Internet Explorer messed up in the header, while Firefox didn’t. Sounds familiar right? It turned out (for a change) that IE was right and Firefox wasn’t.

Because it was a IE only problem I started checking my CSS and IE-only CSS. I changed some attributes to see if there was some kind of odd bug in IE. But nothing appeared to help. Whatever I did, nothing even changed in the header. So I checked if the CSS file was included the right way, which was the case. I didn’t mix up classes and id’s.

Conclusion: it’s something with the HTML!!@#!@ So there I go, checking the templates in my favorite CMS (MODx). Nothing seemed to be wrong so I checked the fully rendered page in the Firefox source code viewer and this is what I saw (line 10):

Going-nuts

At that moment I was very ashamed of myself. And I still am. Wasting almost 30 minutes on one closing bracket! And even worse (I have to admit it), IE was more strict than Firefox.