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

incorrect-document-mime-type

Print this article

    Description

    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.

    Standard

    Best Practice, SiteLint

    Was this article helpful to you? Yes No