Document: all 속성
지원이 중단되었습니다: This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible; see the compatibility table at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time.
Document
읽기전용 인터페이스인 all
속성은 문서 노드에 위치한HTMLAllCollection
(en-US) 반환합니다.
문서순서상의 문서의 모든 요소 HTMLAllCollection
(en-US)를 리턴하는 document.all
대신, 문서순서상의 문서의 모든 요소 NodeList
를 리턴하는 Document.querySelectorAll
를 사용 할 수 있습니다:
const allElements = document.querySelectorAll("*");
값
HTMLAllCollection
(en-US)는 문서 내에서 모든 요소를 담고 있다.
명세서
Specification |
---|
HTML Standard # dom-document-all |
브라우저 호환성
BCD tables only load in the browser