all property

The Document interface's read-only all property returns an HTMLAllCollection rooted at the document node.

Rather than using document.all to return an HTMLAllCollection of all the document's elements in document order, you can use Document.querySelectorAll to return a NodeList of all the document's elements in document order:

const allElements = document.querySelectorAll("*");

Implementation

external HTMLAllCollection get all;