Skip to content

PEP page include extra <html>, </html> etc. #986

@fingolfin

Description

@fingolfin

PEP pages like https://www.python.org/dev/peps/pep-0526/ seem to take an existing HTML document (for a PEP) and then copy it verbatim into the HTML generated for this site.

This results in malformed HTML (see also https://validator.w3.org/nu/?doc=https%3A%2F%2Fwww.python.org%2Fdev%2Fpeps%2Fpep-0526%2F), as now in the middle of the HTML body, there is another set of elements <html>, <head>, <body> etc..

I think at the very least, these should be stripped, and only the content of the body element be inserted into the generated HTML.

Metadata

Metadata

Assignees

No one assigned

    Labels

    app/pepsRelates to the peps app

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions