[thelist] Odd JavaScript Warning

Peter Brunone (EasyListBox.com) peter at easylistbox.com
Wed Mar 7 10:44:25 CST 2007



   document.all should never be used in Firefox (or in IE, really, but at least it works there).  Can you just put a check around it, i.e.

if(document.all) {
   // do your document.all code here
   }

?

Peter

				From: "Jay Blanchard" jblanchard at pocket.com

[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




More information about the thelist mailing list