1. Home
  2. SiteLint
  3. Quality Rules
  4. incorrect-document-mime-type


Print this article


The document.contentType read-only property returns the MIME type that the document is being rendered as. This may come from HTTP headers or other sources of MIME information and might be affected by automatic type conversions performed by either the browser or extensions. The rule determines if the content type is text/html.

How to fix it

  • Ensure the content is being sent from the server with mime-type text/html.


Best Practice, SiteLint

Was this article helpful to you? No Yes

How can we help?