It’s error arises then JavaScript trying to add elements in existing DOM-structure.
Check this example:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<title>Internet Explorer: Operation Aborted. Sample error.</title>
</head>
<body>
<table>
<script>
document.body.appendChild(document.createElement('div'))
</script>
</table>
</body>
</html>
There are two ways to avoid this:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<title>Internet Explorer: Operation Aborted. Sample solution.</title>
</head> <body>
<ul>
<script>
window.onload = function(){
document.body.appendChild(document.createElement('div'))
}
</script>
</ul>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<title>Internet Explorer: Operation Aborted. Sample error.</title>
</head>
<body>
<table>
<script defer="defer">
document.body.appendChild(document.createElement('div'))
</script>
</table>
</body>
</html>