SiteLint documentation and guidelines

Incorrect mime-type for the document

Description

Rule ID: incorrect-document-mime-type

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 the mime-type text/html.

Standard

Best Practice, SiteLint