Skip to: Site menu | Main content

I know stuff!

In web development and programming, I often come across useful tidbits that solve a problem for me. I often have those problems again and can't remember that tidbit. Now I will. Maybe you can benefit too.

IE7 "unknown runtime error" when editing innerHTML
Published: 8/26/2008 by mr.dossett

I found this elsewhere in various forums and comments but not very concisely.  Basically it comes down to, you can't nest block elements in a P tag.  If you do, you can't edit the innerHTML of that block element. 

Take the block element out of the P tag and you should be set.  In my case this was in using Googiespell, a great free spellchecker for your site. 

Relevant Tags: AJAX | JavaScript

Comments:

No Comments Available - You can be first!

Add a Comment:








(Note: I reserve the right to remove any comments I deem not worthy.)