homepage Welcome to WebmasterWorld Guest from 54.196.24.103
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / CSS
Forum Library, Charter, Moderators: DrDoc

CSS Forum

    
IE6 bug: crash on hover
crash IE6 in 20 lines of HTML and CSS
quesera




msg:1185603
 5:51 pm on Sep 6, 2004 (gmt 0)

Sorry if this doesn't belong here. I discovered it while adding background-text on :hover to links in CSS, and it does require CSS elements to work.

When the link in the below code is hovered, IE6 crashes hard: "Visual C++ Runtime Library, Runtime Error, R6025 - pure virtual function call".

Changing just about any of the CSS parameters or removing any of the HTML elements in the page will either avoid the crash completely, or cause it to crash in a slightly more graceful way ("IE has encountered a problem and needs to close, please tell Microsoft about this problem.").

Note that if the HTML comment in the below code is removed, IE6 does not crash. Weird. Fragile!

Version tested: Win2K IE6.0.2800.1106, completely default config, WindowsUpdate says fully updated.
I don't have a WinXP system to test on. Anyone want to give it a shot?

It goes without saying that Mozilla/Firefox, Safari, and IE5/Mac work fine.

One redeeming factor about IE6: when you're simplifying test cases for a crash demo, it sure is nice to have 90% of the browser preloaded in the OS, so restarting after a crash only takes a couple seconds. :-)

Andrew

Here's the code:


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>IE6 crash on hover</title>
<style type="text/css">
a:hover { background-color:#f90; }
div.header { float:right; }
div.nav { float:left; width:100%; }
div.flybox { float:left; width:250px; }
</style>
</head>
<body>
<div></div>
<div class="header"></div>
<!-- if this comment is removed, ie does not crash -->
<div class="nav"></div>
<div><a href="">crash on hover</a></div>
<div><div class="flybox"></div></div>
</body>
</html>

 

SuzyUK




msg:1185604
 6:42 pm on Sep 6, 2004 (gmt 0)

quesera, Yes it crashes XP too..

again it can be fixed by giving the content following the float layout.. just about all of IE's bugs are related to floats and a:hover triggers. The comments are a trigger in another IE bug something to do with comments between floats being treated as whitespace, but I'm starting to forget all the different names of the bugs now as the cure (to give an element layout) is generally the same lol... sad isn't it?

Suzy

quesera




msg:1185605
 7:58 pm on Sep 6, 2004 (gmt 0)

Hi Suzy.

Thanks for the info. I knew the crash was easy to avoid (like the other bug, changing the float width to less than 100% fixes it, in addition to the hasLayout triggers).

Are IE6 crash bugs common? I only use IE for final page testing.

SuzyUK




msg:1185606
 10:12 pm on Sep 6, 2004 (gmt 0)

Are IE6 crash bugs common?

no not as far as I've noticed

IE display bugs are common but narrowing a crash bug using only CSS as you've done is fairly rare I think, but someone else probably knows more

Suzy

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / CSS
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved