After the latest security update for IE 9 I have noticed some strange behaviour on all of my computers running IE 9.
When for example embedding a Youtube video in an iframe and then removing the iframe using javascript, nothing happens. The html code is updated but the updated html code is not rendered by IE 9. Sometimes IE 9 hangs completely.
Running IE 9 in compatibility mode everything works perfectly okay.
Sometimes it is also possible to remove the iframe by trying multiple times.
Can anyone else reproduce the same behaviour?
The code below was working perfectly okay before the security update!
Example code:
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<script>
function run()
{
var iframe = document.getElementsByTagName('iframe');
count = 0;
while(count < iframe.length)
{
iframe[count].outerHTML = '';
count++;
}
}
function html()
{
alert(document.documentElement.innerHTML);
}
</script>
<input type="button" value="Remove" onClick="run();" />
<input type="button" value="HTML" onClick="html();" />
<br>
<br>
<iframe src="http://www.youtube.com/embed/QH2-TGUlwu4" width="480" height="360" style="border: none"></iframe>
</body>
</html>