Document: all プロパティ
Deprecated
Avoid using this feature in new projects. This feature may be a candidate for removal from web standards or browsers.>
Document インターフェイスの all プロパティは読み取り専用で、この文書ノードをルートとした HTMLAllCollection を返します。
document.all を使用してこの文書内のすべての要素を文書順に HTMLAllCollection で返す代わりに、Document.querySelectorAll を使用してこの文書内のすべての要素を文書順に NodeList で返すことができます。
js
const allElements = document.querySelectorAll("*");