Bug Tracker

Ticket #4230: DOM2-IEcrash.htm

File DOM2-IEcrash.htm, 694 bytes (added by yoursunny, 11 years ago)
Line 
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3<html xmlns="http://www.w3.org/1999/xhtml">
4<head>
5<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6<title>5 lines of DOM2 JavaScript crash IE8rc1</title>
7</head><body>
8<script type="text/javascript">//<![CDATA[
9//discovered by yoursunny.com
10//this is actually the 'core' of jQuery-IEcrash.htm
11var div=document.createElement('div');
12div.innerHTML='div<div><link rel="stylesheet" type="text/css"/></div>';
13div=div.lastChild;
14var link=div.childNodes[0];
15link.setAttribute('href','http://css.cn.msn.com/c/green14.css');
16//]]></script>
17</body></html>