Which means if you change the p to div, the code will execute correctly, since the div element allows other block-level tags within it. Eliminating that solved the problem.This is consistent with PatriotB suspecting that ValidateObject is being more strict than the HTML parser. June 18, 2010 at 3:05 PM Anonymous said... Describe your problem in more detail or include a minimal example in the question itself." – Midhun MP, Tomasz Kowalczyk, Elliott Frisch, Reto Aebersold, LouisIf this question can be reworded to this contact form
Uh... IE was the first to have it, and thus its behavior (including unwanted errors) is the closest thing to a standard there is. If anyone could shed some light on a reason as to *why* this occurs - I'd be very interested to find out Cheers, Kev. July 16, 2014, Philip says: THANK YOU SO MUCH!I saw this error and I could not for the life of me figure out what was wrong with my code. http://stackoverflow.com/questions/13817999/innerhtml-issue-in-ie8-and-below
Normally this shouldn't cause any problems, and doesn't the first time I populate the div tags, but the second time around, I started getting an error. THANK YOU SO MUUUUCHHHHH....^_^ April 24, 2008 at 8:27 AM chrismitchellonline said... If instead of using innerHTML you use the appropriate DOM calls to build the HTML tags etc properly then you will have slightly longer code but it will be guaranteed to Most of the other browsers probably support it as well in order to be compatible with this defacto standard.
June 6, 2008 at 5:25 AM J E Carter II said... Lengthwise or widthwise. Sure enough - my SPAN ID was 'type'. I'm pretty sure < img> tags are allowed in < div>'s so, the whole thing about putting block elements inside of inline elements is irrelevant here I think.There's something else IE
It's not the behavior everyone else has, but by no stretch of imagination is it wrong. Using DC in transformers? In the debugger, I tried: element.innerHTML = "hello" which also threw an "unknown runtime error" The nodeName for the element is the name of my directive XX-MYDIRECTIVE I'm manually calling the One dissadvantage to using textnodes is it displays text and doesn't render html.
July 22, 2009 at 5:46 PM Flamming_Python said... weblink gracias!! Please send a follow up if I'm wrong. Didnt rwalize i had a form within a form till I found this. Innerhtml Ie8
It's tabular data before any css specialists jump down my throat ;)I've had to refactor the HTML to use
September 25, 2012, Potheek says: Thanks a lot, that was helpful :) December 5, 2012, Emily says: I was trying to update innerHTML of table. This caused IE7/8 to choke, which is correct behavior here since it is invalid HTML. in firefox and chrome wrkng fine.
BUT: if I change it to (whether or not I give the anchor any parameters) then IE complains about "Unknown runtime error". However, that doesn't change the way the browser handles block elements and their related behaviors - only the way it is rendered.In other words, a
Look at the following code for example.
did the trick. February 28, 2009 at 11:27 PM ethan said...