[Javascript] js error in IE

Mike Dougherty mdougherty at pbp.com
Mon Mar 5 07:26:18 CST 2007


On Mon, 5 Mar 2007 11:39:25 +0100
  Bob Schwartz <bob at fotografics.it> wrote:
> I am getting an error in IE in a js that seems to be working just  fine in all other browsers.
> 
> MS script debugger says the error is here:
> 
> p.innerHTML = (quote[ry]);

http://www.w3.org/TR/html4/struct/text.html#edef-P

"The P element represents a paragraph. It cannot contain block-level elements (including P 
itself)."

In the case I tried, quote[28] contained another p

You might want to create a container that does accept block level elements like p



More information about the Javascript mailing list