HTML code that can make IE freeze

HTML code that can make IE freeze
We simply need to open any text editor, copy the following code into it, and save the file, for example SomeFilename.html.

Copy code
The code is as follows:

<html><head>
<style type="text/css">
#a {
margin:0 10px 10px;
}
#b {
width:100%;
}
</style>
<title>IE Crasher</title>
</head>
<body>
<table><tr><td>
<div id="a">
<form id="b">
<input type="text" name="test"/>
</div>
</td><td width="1"></td></tr></table>
</body></html>

Then open it with Internet Explorer - haha! It died miserably for you to see.

This bug exists in almost all popular IE versions, from IE6 to the just-released 6th platform preview of Internet Explorer 9. In IE6, the page often appears blank, but the entire window is not interactive. In IE8, the crash is complete. IE9 Beta has enhanced robustness. Through my actual testing, this page will cause the entire process to become unresponsive. Sometimes IE9 will prompt you that there are problems with the webpage, but this cannot avoid the reality of crashing.

In fact, this problem has been discovered a long time ago, and there is even a dedicated website (http://crashie8.com/, please spread this link with caution). Any browser other than IE would have no problem opening the page, but IE crashed inexplicably.

Of course, if you are careful, you will find that the <form> tag in the above HTML code is not closed. We need to use the </form> closing tag after the <input> tag to make this code conform to the specification. Standard code will not cause IE to crash, so it seems that it is not IE's fault.

However, when other browsers have high fault tolerance, IE does not, even in IE9 it still does not have it. This is the tragedy of IE.

<<:  Web Design Experience: Self-righteous Web Designers

>>:  JavaScript to achieve simple drag effect

Recommend

js code to realize multi-person chat room

This article example shares the specific code of ...

Write a publish-subscribe model with JS

Table of contents 1. Scene introduction 2 Code Op...

Enabling and configuring MySQL slow query log

Introduction MySQL slow query log is an important...

How to set the number of mysql connections (Too many connections)

During the use of mysql, it was found that the nu...

Detailed explanation of tinyMCE usage and experience

Detailed explanation of tinyMCE usage initializat...

Set the width of the table to be fixed so that it does not change with the text

After setting the table width in the page to width...

Implementation idea of ​​left alignment of the last row of flex box layout

Using flex layout, if it is a nine-square grid, i...

Detailed explanation of common commands in Docker repository

Log in docker login Complete the registration and...

HTML left and right layout example code

CSS: Copy code The code is as follows: html,body{ ...

CSS3 realizes draggable Rubik's Cube 3D effect

Mainly used knowledge points: •css3 3d transforma...

Mysql auto-increment primary key id is not processed in this way

Mysql auto-increment primary key id does not incr...

Instructions for using JSON operation functions in Mysql5.7

Preface JSON is a lightweight data exchange forma...

An article teaches you how to use Vue's watch listener

Table of contents Listener watch Format Set up th...

How to deploy nextcloud network disk using docker

NextCloud You can share any files or folders on y...