Home > Unknown Runtime > Internet Explorer Set Innerhtml Unknown Runtime Error

Internet Explorer Set Innerhtml Unknown Runtime Error


This code works fine in Firefox: My Page March 17, 2007 at 6:46 AM PatriotB said... The same calls are made for several fields, and they all work just fine, except for this one. Great article, thanks so much!

April 25, 2008 at 12:52 AM Pavan said... How can 'HD 140283' be older than the universe? asked 3 years ago viewed 4006 times active 3 years ago Blog Stack Overflow Podcast #97 - Where did you get that hat?! weblink I changed it to div, and no more error.

I could post all the code here, but it seems to me that sincer my code works fine with most content, there must be something "special" about sending an anchor tag June 2, 2008 at 4:28 AM Anonymous said... If you load a webpage with the "bad" HTML in it, IE will display it just fine, so why can't innerHTML adapt? The simplest way is to convert read-only elements to div element.

me salvaste la vida! My problem was also the nested tags. It's quick & easy. you could remedy likely remedy it by creating a brand new div element (using document.create('div') ), then setting the innerHTML property, then replacing your old one out with your new one

This caused IE7/8 to choke, which is correct behavior here since it is invalid HTML.