Bizarre bugs of Microsoft

I love Internet Explorer, I really DON’T. I just spent 2 hours trying to find some kind of hack to fix the most bizarre bug I’ve found in it, and the hack that finally fixed it, was almost as bizarre as the bug itself.
Here goes: I have a page with a table (Yes, I know I shouldn’t use tables for design, but it’s a lot easier in this case.), and three iframes beside eachother inside that table. The table has its height and width set to 100%, and the iframes have their height set to 98% (100% also works) of their table cell. That’s all I have to tell you to reproduce this. The thing that happens is that the third line in each iframe becomes invisible. Only the third line, only the text of it, and it doesn’t matter if the third lines have the same distance from the top. These pictures show the result:

IE Table/iframe bug (in action)
This is what it looks like in IE.

IE Table/iframe bug (fixed)
This is what it should look like.

It works as it should in all browsers except IE (just like everything else…), and it works as it should if I remove the height property of the table. Quite bizarre bug, don’t you think?
Anyway, the fix is, as I said, quite bizarre too. Put a div tag around the iframes. the bad thing with that is that it doesn’t work in other browsers, because then the div tag doesn’t fill the entire height of the table cell. I tried setting the height of the div tag, but then the bug reappeared in IE, so I added some comment hacks:

<!--[if lt IE 7]>
<div>
<![endif]–>
  [iframe(s) here]
<!–[if lt IE 7]>
</div>
<![endif]–>

I just love these bizarre bugs that keep appearing in IE for no reason. Maybe I should boycott IE and leave that bug in the web site. Then we’ll see what happens, because making all these hacks is getting quite tedious.

EDIT: Forgot to say it, but this result was in IE 6 (the comments hack’s “lt” means Less Than, so they shouldn’t trigger on IE 7, which I haven’t tested yet though…

//Firetech

P.S. While I’m on the subject of Microsoft: I found this article quite interesting…

2 Responses to “Bizarre bugs of Microsoft”

  1. dikatlon Says:

    Huh, I met many weird bugs like that in ie…do you mean that you get this bug in ie7?!! I know you have written IE7 in the comment hack - but it makes me shake thinking that webdeveloping for different browsers will still be an nightmare.

  2. Firetech Says:

    No, this is in IE 6, I haven’t tried IE 7 yet, since I’m not running windows (I tested it on my mother’s laptop). the comment hacks say “if lt IE 7″, which means “If Less Than IE 7″… I hope IE 7 works as it should…

Leave a Reply

There's no need to post spam here, Akismet has caught 15,489 spam comments since I installed it...