Skip to content

PPcomp gives a traceback if HTML header is lowercase #1939

Description

@windymilla

It is reported that this also happens in the PPWB version of PPcomp.

I think there are two bugs:

  1. It should obviously accept <!DOCTYPE html> case-insensitively
  2. If it doesn't find that string, it then attempts to parse it as HTML4, rather than HTML5. That parsing fails, but it should output a polite message, not give a traceback

Example files to PPcomp: ducky-entertains.zip

To test:

  1. Try varying the case of the first line of HTML
  2. Try changing the first line so it doesn't match, even case-insensitively, e.g. <!DOCTYPE rubbish>

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