How to find all elements in a page
<p>I know of two ways to find all the elements in the page.</p>

<p><code>document.getElementsByTagName('*')</code> and <code>document.all</code></p>

<p>Is there a better way or is one of these the best?</p>

<p>I'm making an element selector (mostly for practice) and I want to know the most reliable way to get all of the elements in the page, to test against the selector.</p>
