W3C home > Mailing lists > Public > site-comments@w3.org > July 2011

Is it TRUE that the document.all-collection has become obsolete?

From: <MvhAneK@gmail.com>
Date: Fri, 01 Jul 2011 05:33:08 +0000
Message-Id: <90e6ba61554a37ba7904a6d595ad@google.com>
To: site-comments@w3.org
Hi there,


I've just taken up web-programming again , and - as before - I feel helplessly behind.
But that goes with the territory.
Sometimes, though, I get very confused, as to which methods to use.

For instance: before I used to use the document.all-collection a lot.
I think the DOM is a smart way to address everything in a web-document.

But then I read that the Document.all is obsolete, and that it is downright stupid to use it.
That I should use the getElementByID instead.

But I think that making the document.all-collection obsolete wil decrease the control the developers have over what they're doing.

So my question is: whats up and down in this?

Please.


Mvh Ane K Due
Please confer with these sites
http://bytes.com/topic/javascript/answers/702868-document-all-vs-document-getelementbyid
http://my.opera.com/hallvors/blog/2008/01/25/document-all-true
Received on Tuesday, 5 July 2011 06:34:34 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 24 October 2012 16:21:33 GMT