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 반환합니다.
문서순서상의 문서의 모든 요소 HTMLAllCollection를 리턴하는 document.all 대신, 문서순서상의 문서의 모든 요소 NodeList를 리턴하는 Document.querySelectorAll를 사용 할 수 있습니다:
js
const allElements = document.querySelectorAll("*");