Specifically, document.all
was introduced for IE4 BEFORE document.getElementById
had been introduced.
So, the presence of document.all
means that the code is intended to support IE4, or is trying to identify the browser as IE4 (though it could have been Opera), or the person who wrote (or copied and pasted) the code wasn't up on the latest.
In the highly unlikely event that you need to support IE4, then, you do need document.all
(or a library that handles these ancient IE specs).