HighDots Forums  

Netscape 4.x Compatibility Issue

Javascript JavaScript language (comp.lang.javascript)


Discuss Netscape 4.x Compatibility Issue in the Javascript forum.



Reply
 
Thread Tools Display Modes
  #11  
Old   
Grant Wagner
 
Posts: n/a

Default Re: Netscape 4.x Compatibility Issue - 06-17-2004 , 11:39 AM






Yann-Erwan Perio wrote:

Quote:
Actually I was simply commenting on the fact that document.all should be
called as a *method* according to MSDN (though they use the expression
"document.all collection" quite frequently in the reference)- while I'd
advise using it with the array-like accessors, for the reasons explained
precedently.
document.all is a collection, since it can be accessed using square bracket
array notation: document.all[...].

The confusions is that collections in IE can also be accessed using "method
notation" or "vbscript array notation" or whatever you want to call it:
document.all(...), document.forms(...).elements(...), etc. which can lead to
massive confusion (and the source of many errors in other user agents).

--
Quote:
Grant Wagner <gwagner (AT) agricoreunited (DOT) com
* Client-side Javascript and Netscape 4 DOM Reference available at:
*
http://devedge.netscape.com/library/...ce/frames.html

* Internet Explorer DOM Reference available at:
*
http://msdn.microsoft.com/workshop/a...ence_entry.asp

* Netscape 6/7 DOM Reference available at:
* http://www.mozilla.org/docs/dom/domref/
* Tips for upgrading JavaScript for Netscape 7 / Mozilla
* http://www.mozilla.org/docs/web-deve...upgrade_2.html




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.