Document: all 속성

지원이 중단되었습니다: 이 기능은 더 이상 권장되지 않습니다. 일부 브라우저에서는 아직 지원할 수 있지만 관련 웹 표준에서 이미 제거되었거나 제거 과정에 있는 경우가 있으며, 호환성을 위해 유지되고 있을 수 있습니다. 사용을 피하고 가능하다면 기존 코드를 업데이트하세요. 결정을 지원할 하단의 호환성 표를 확인하세요. 이 기능은 언제든지 작동을 중단할 수 있음을 유의하세요.

Document 읽기전용 인터페이스인 all 속성은 문서 노드에 위치한HTMLAllCollection 반환합니다.

문서순서상의 문서의 모든 요소 HTMLAllCollection를 리턴하는 document.all 대신, 문서순서상의 문서의 모든 요소 NodeList를 리턴하는 Document.querySelectorAll를 사용 할 수 있습니다:

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

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

명세서

Specification
HTML
# dom-document-all

브라우저 호환성

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
all
Deprecated

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
Partial support
Partial support
Deprecated. Not for use in new websites.
Has more compatibility info.