The Coffee Lounge Forum Feedback Computer Issues Announcements, Press Releases, & News « Previous Thread | Next Thread » Thread Information Users Browsing this Thread There are currently 1 users browsing http://blog.rakeshpai.me/2007/02/ies-unknown-runtime-error-when-using.html Have searched this forum, as well as the MSDN documents, and not found anything helpful. How To Fix Unknown Runtime Error Last edited by konithomimo; 09-10-2006 at 08:14 AM. Innerhtml Ie8 I found the best way to avoid IE errors when using innerHTML is to create a new div and swap them:someHtml = 'Some Html Text';oldDiv = document.getElementById('oldDivId');newDiv = document.createElement(oldDiv.tagName);newDiv.id = oldDiv.id;newDiv.className
However, in this case, XML/XHTML has nothing to do with anything; HTML is a separate specification with its own rules, and MSHTML (IE's HTML parser) is only an HTML parser. have a peek at these guys If "thediv" were the div whose innerHTML you wanted to set, then create another div using createElement and append the new html to that element and then appened that new element gracias!!en ingles:thanks!! This caused IE7/8 to choke, which is correct behavior here since it is invalid HTML. Unknown Runtime Error Ie8
For example, trying to replace the content of the P element with another P will fail. To start viewing messages, select the forum that you want to visit from the selection below. It's not the behavior everyone else has, but by no stretch of imagination is it wrong. check over here oh well.
It seems that IE 8 does not like custom tag names such as
April 20, 2011 at 10:25 am nkasieng Safi Male malete says: My problem was [tags that aren’t nested properly] Awesome article, Happy coding. FireFox did not throw an error. If the content is coming from a third party, you should consider setting up a proxy on your server to clean up the markup. Previous Entry, All work and no play makes Jack a dull boy, posted May 16, 2009 Next Entry, Custom DataGridViewColumn & IDataGridViewEditingControl classes, June 2, 2009 See also: RSS feed Blog
Get rid of it. One of IE's more bizarre bugs, I must admit.