advertisement
advertisement

Crash your browser [Archive] - MousePad

View Full Version : Crash your browser


Andrew
05-03-2003, 10:22 PM
(if your browser is any IE past 4.0)

These five lines of pure HTML code, alone on a page, will crash IE with an unhandled exception:

<html>
<form>
<input type crash>
</form>
</html>

Here's a link (http://vibrantlogic.com/new.html) to test/crash your browser.

Now granted, there are structural problems with the code listed (no BODY tag, "crash" is not an attribute of INPUT). A properly designed browser (http://www.opera.com/) should skip over code it doesn't understand, though.

DisneyFan25863
05-04-2003, 08:08 AM
Thats why I love Opera :fez: :fez:

JeffG
05-04-2003, 09:11 AM
That is pretty bad. My first guess was that someone might have stumbled on a testing mechanism (in other words, an intentional way to force a crash), but I tried changing the "crash" to some other invalid input type and it still crashes the browser.

Looks like a real bug...

-Jeff

Andrew
05-04-2003, 12:25 PM
Originally posted by JeffG
That is pretty bad. My first guess was that someone might have stumbled on a testing mechanism (in other words, an intentional way to force a crash), but I tried changing the "crash" to some other invalid input type and it still crashes the browser.

Looks like a real bug...


It turns out (from /. postings) that the bug behavior shows when:
1. The FORM tag is outside a BODY tag, and
2. The TYPE attribute of the INPUT tag has an undefined or empty value.

Kind of surprising this hasn't been discovered earlier (or maybe it has, and went unremarked since it's obviously bad HTML). But a browser shouldn't crash on bad markup--it should just fail to render.

Andrew
05-04-2003, 12:40 PM
The problem occurs in Windows' HTML rendering engine, used by IE to display Web pages, Explorer to show folders in "Show as Web page" mode, and (:eek: ) Outlook Express to render HTML email. It'd be pretty evil to send HTML email containing this code to an OE user.

Needless to say the problem does not appear on Mac OS, or non-IE browsers on Windows.

Not Afraid
05-04-2003, 11:28 PM
So, I clicked on the link and guess what? My browser crashed. Somehow I didn't think the test would actually complete the deal.:rolleyes:

adriennek
05-04-2003, 11:31 PM
Originally posted by Andrew
Needless to say the problem does not appear on Mac OS, or non-IE browsers on Windows.

That's ok, we get our own IE bugs. There are a bunch of websites that don't work because there was a Mac IE bug that most (lame) websites didn't or won't fix.

Adrienne

mhrc4
05-05-2003, 09:55 AM
Originally posted by adriennek
That's ok, we get our own IE bugs. There are a bunch of websites that don't work because there was a Mac IE bug that most (lame) websites didn't or won't fix.

Adrienne

from my understanding the biggest issue with MAC IE is version 5 or 5.5.... cant remember, but I know newer versions were supposed to have fixed majority of those bugs....

adriennek
05-05-2003, 11:33 AM
I don't have many problems now. I'm using 5.1.5. But every once in awhile I hit a site that crashes.

Adrienne


advertisement
advertisement