This page was translated from English by the community. Learn more and join the MDN Web Docs community.

View in English Always switch to English

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("*");

HTMLAllCollection는 문서 내에서 모든 요소를 담고 있다.

명세서

Specification
HTML
# dom-document-all

브라우저 호환성