* You are viewing Posts Tagged ‘dom’

IE DOM Error Message / Operation Aborted

It is possible in IE for DOM manipulation during load to cause an error that looks like the following

IE “Internet Explorer cannot open the Internet site” … “Operation aborted”
This error is directly cause by script called with in an element that attempts to append/insert DOM nodes to its unclosed parent’s parent node. For example the following code will work fine in FireFox and Opera, but not in IE.

<html>

<head>

<title>Test</title>

</head>

<body>

<div id=”div0″ style=”width:150px;border:1px solid black;margin:25px;”>Test Div 0</div>

<div id=”div1″ style=”width:200px;border:1px solid red”>

Test Div 1

<div>

<script type=”text/javascript”>

var div0 = document.getElementById( “div0″ );

var div1 = … Continue Reading