[Python-Dev] PEP html display in IE

Fredrik Lundh fredrik@pythonware.com
Wed, 13 Nov 2002 17:22:15 +0100

David Goodger wrote:

> > you're using an XHTML DTD, but the files are missing the mandatory xmlns
> > declaration on the html tag (see section 3.1.1, item 3 of the XHTML
> > specification).
> Corrected.  Thanks for the pointer.
> As the original author of pep2html.py, let me ask you something.  Plaintext
> PEPs use the HTML 4 transitional DTD (loose.dtd), but pep2html.py claims to
> produce XHTML.

Well, I'm pretty sure it didn't produce valid XHTML when I checked it in...

> Should the DOCTYPE be switched to the XHTML DTD?  Or is this a case of
> "if it ain't broke, don't fix it"?

I checked a few random PEPs, and found two small problems:

    - the stylesheet link tag in the header has no end tag.
    - there's no xmlns attribute on the html element.

Except from that, the output looks like XHTML to me and to the XML
parser I used.  So if you have the time...