why does document.all.item does not work on localhost?
<p>I am working on a very old web app which uses document.all.item to iterate through the dom and 
it is causing runtime errors when i deploy the application in localhost and the error dissapears when i deploy it on server outside my machine. Below os the code where it throws the unknown runtime error. what is the reason or how can i go about resolving it?</p>

<pre><code> with(document.all)

  item('fieldName').innerHTML = "Blah Blah";  // Error is on this line.?

}
</code></pre>

<p>When i tried to debug in IE. I can access the item but cannot access the innerHTML for some reason. Is it because of IE or something else?</p>
