Document: contentType property
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
Document.contentType
은 document가 렌더링 되는 MIME 타입을 반환하는 읽기 전용 속성입니다. Document.contentType
은 HTTP 헤더나 그 외에 MIME 정보 출처에서 나올 수 있으며 브라우저나 확장 프로그램에서 수행하는 자동 타입 변환의 영향을 받을 수 있습니다.
참고 :
이 속성은 <meta>
에 영향을 받지 않습니다.
값
contentType
은 읽기 전용 속성입니다.
명세서
Specification |
---|
DOM # ref-for-dom-document-contenttype① |
브라우저 호환성
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
contentType |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- Has more compatibility info.
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.