Hi,
I've tried the following HTML code on several different Windows 7 computers with Internet Explorer 8, and everywhere this crashes Internet Explorer. I have not been able to reproduce this with IE7, or on Windows XP with IE8.
<!doctype html>
<head>
<title>Crashes IE8 on Win7</title>
<style>
article { display: block; }
</style>
<script>
document.createElement('article');
document.createElement('nav');
function initialize() {
var map = new google.maps.Map(document.getElementById("map_canvas"), {});
}
function loadScript() {
var script = document.createElement("script");
script.type = "text/javascript";
script.src = "http://maps.google.com/maps/api/js?sensor=false&callback=initialize";
document.body.appendChild(script);
}
window.onload = loadScript;
</script>
</head>
<body>
<nav><ul><li>
<div id="map_canvas"></div>
<article>
</li></ul></nav>
</body>
The only real bug in the page, is the missing </article>
tag. The rest is all required to make IE crash. I'm sure I could have narrowed it down further by disassembling the Google Maps API, but that went a bit too far for me.
Can anybody else reproduce this, or is their some weird configuration that only applies to all the machines I have tested this on?
EDIT: To be more clear, I am not looking for a fix to my code. (The fix would be: add missing </article>
tag.) I am looking if this crashes IE8 on Win7 other people also, and maybe if I should report this somewhere, since I understand crashes can often be used to take control of a victims computer.