-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fails with PEP 503-compliant XML-serialised HTML5 ("XHTML5") directory indices #6697
Comments
What does using the verbose option show out of curiosity? |
|
Whichever choice we make, I suggest PEP 503 should get a clarification stating which content-type(s) the index must be served with. (in cases where a content type is supplied at all - I don't see anything that disallows an index having a base URL that's a IMO, requiring |
Also, should that skip message be a warning rather than a debug message? |
And the serialisation as well, since the body differs too per above - XHTML-serialised HTML5 doesn't mandate !DOCTYPE. |
@cjerdonek, made #6754 to discuss. |
Created python/peps#1126 to follow up on the PEP 503 update. Is there anything else we need to track here? |
Nope. Thanks @chrahunt! |
Environment
Description
PEP 503 states that each directory index must be a "valid HTML5 page". XML is a valid serialisation of HTML5, but e.g. package installation fails when presented with XML-serialised HTML5 ("XHTML5").
Expected behavior
pip supports XML-serialised HTML5, or PEP 503 mentions this restriction.
How to Reproduce
Serve a page with the content type "application/xhtml+xml", that begins with:
Output
How to not reproduce
Serve an otherwise identical page, but with the content type "text/html", and that begins with:
The text was updated successfully, but these errors were encountered: