[Javascript] js error in IE

Bob Schwartz bob at fotografics.it
Mon Mar 5 07:39:43 CST 2007


Mike,

Changed p to div and that did the trick.

Thanks

Bob


> 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
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
>




More information about the Javascript mailing list