yoursunny.com
2009-02-20 03:05:01 UTC
I'm running IE8rc1 (en-us) on Windows Server 2003 (zh-cn).
I'm using jQuery to insert a stylesheet into the HTML page, but iexplore.exe
Tab-process crashes every time.
The code I'm using is:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>1 line of jQuery crashes ***@win2003</title>
</head><body>
<script type="text/javascript"
src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.1/jquery.js"></script>
<script type="text/javascript">
//discovered by yoursunny.com
$(document).ready(function(){
$('<link rel="stylesheet"
type="text/css"/>').attr('href','http://css.cn.msn.com/c/green14.css');
});
</script>
</body></html>
An equivalent without jQuery is:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>5 lines of DOM2 JavaScript crash ***@win2003</title>
</head><body>
<script type="text/javascript">
//discovered by yoursunny.com
//this is actually the 'core' of jQuery-IEcrash.htm
var div=document.createElement('div');
div.innerHTML='div<div><link rel="stylesheet" type="text/css"/></div>';
div=div.lastChild;
var link=div.childNodes[0];
link.setAttribute('href','http://css.cn.msn.com/c/green14.css');
</script>
</body></html>
This behavior is constantly reproducible.
This behavior exists when IE8rc1 is running in No-Addons mode.
----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.
http://www.microsoft.com/communities/newsgroups/list/en-us/default.aspx?mid=1d8bf8b8-8b37-4490-91a1-a4e04fd85c92&dg=microsoft.public.internetexplorer.beta
I'm using jQuery to insert a stylesheet into the HTML page, but iexplore.exe
Tab-process crashes every time.
The code I'm using is:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>1 line of jQuery crashes ***@win2003</title>
</head><body>
<script type="text/javascript"
src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.1/jquery.js"></script>
<script type="text/javascript">
//discovered by yoursunny.com
$(document).ready(function(){
$('<link rel="stylesheet"
type="text/css"/>').attr('href','http://css.cn.msn.com/c/green14.css');
});
</script>
</body></html>
An equivalent without jQuery is:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>5 lines of DOM2 JavaScript crash ***@win2003</title>
</head><body>
<script type="text/javascript">
//discovered by yoursunny.com
//this is actually the 'core' of jQuery-IEcrash.htm
var div=document.createElement('div');
div.innerHTML='div<div><link rel="stylesheet" type="text/css"/></div>';
div=div.lastChild;
var link=div.childNodes[0];
link.setAttribute('href','http://css.cn.msn.com/c/green14.css');
</script>
</body></html>
This behavior is constantly reproducible.
This behavior exists when IE8rc1 is running in No-Addons mode.
----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.
http://www.microsoft.com/communities/newsgroups/list/en-us/default.aspx?mid=1d8bf8b8-8b37-4490-91a1-a4e04fd85c92&dg=microsoft.public.internetexplorer.beta