[thelist] Odd JavaScript Warning

Matt Warden mwarden at gmail.com
Wed Mar 7 10:39:18 CST 2007

On 3/7/07, Jay Blanchard <jblanchard at pocket.com> wrote:
> [snip]
> They seem to have a lot of non-standard and non-DOM JavaScript in the
> application. We did look at it with FireBug, but it gave us little to go
> on.
> [/snip]
> Here is more from FireFox (I found a boatload of other stuff to hold the
> vendor's feet to the fire with);
> ERROR - document.all.content has no properties
> WARNING -  non-standard document.all property was used. Use
> document.getElementByID() instead
> But it does have properties as stated before and did not break until the
> other application was installed. If I could just turn off the warning
> we'd be OK until a better solution arrives

If you are just trying to get rid of the warning, you can try changing it to:

if (document.all.content.style)  {
    document.all.content.style.visibility = 'hidden';

Matt Warden
Cleveland, OH, USA

This email proudly and graciously contributes to entropy.

More information about the thelist mailing list