Skip to content

"text/pdf" is not a valid MIME media type for PDF #8516

@petervwyatt

Description

@petervwyatt

There are two places in the HTML specification that refer to text/pdf:

  1. https://html.spec.whatwg.org/commit-snapshots/20d448c784d4fd3cd2802a11af386fff31973457/#process-a-navigate-fetch

  2. https://html.spec.whatwg.org/commit-snapshots/20d448c784d4fd3cd2802a11af386fff31973457/#pdf-viewing-support

RFC 8118 only defines application/pdf as does the official IANA list of registered media types. There is no text/pdf registered with IANA.

Furthermore PDFs must always be treated as binary files, not text, as they contain precise byte offsets and binary data, and altering line endings or other edits can render them invalid. This is what is defined in the latest ISO 32000-2 specification for PDF.

Please remove all mentions of text/pdf from HTML as this is invalid and incorrect.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions