Monday, June 29, 2009

Ode to IE, How I Hate Thee


Just got done spending wasting about 2 hours debugging something in IE.

I am using YUI's SimpleDialog and was getting complaints that the buttons weren't visible in IE browsers.

In the picture below is the code and the dialog displayed, incorrectly. There should be 3 buttons visible in the dialog, as you can see them defined in the code.


No errors, warnings, nothing. Of course it works in FF and Safari. So I tried figuring it out with the Web Developer Toolbar. No dice. I tried messing with widths and heights and a bunch of CSS to see if it was being hidden or something. NADA.

Then when I was browsing the DOM with the Web Developer Toolbar I noticed that there were only 2 input elements instead of the expected 3. I also noticed I had a trailing comma at the end of the third button definition. Could that be it?


Damn. C'mon IE, if you're gonna have a problem with my JS syntax, you could at least throw an error, is that so hard!

0 comments:

Post a Comment