httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 34519] Directory index should emit valid XHTML
Date Mon, 06 Dec 2010 22:10:50 GMT

Christoph Anton Mitterer <> changed:

           What    |Removed                     |Added
                 CC|                            |

--- Comment #13 from Christoph Anton Mitterer <> 2010-12-06 17:10:45
EST ---
I validated a simply directory index from my Debian sid's 2.2.16 server... and
it only gives me some warnings (missing charset).

May I suggest the following:
1) Add XML header:
<?xml version="1.1" encoding="UTF-8"?>

This should solve the warnings. Of course, encoding should be dependant on the
IndexOptions Charset= value.

2) Switch to XHTML 1.1:

As the name says XHTML 1.0 was always meant to be "transitional" and any
browser that can parse that is also able to parse XHTML 1.1 (which is like the
strict variant".
btw: My test-index already validated with XHTML 1.0

3) Add xml:lang
<html xmlns="" xml:lang="en">

Not sure if this is mandatory in the meantime, but it's good behaviour I guess.
Is the content generated by mod_autoindex (I mean the headers) always English?

So this boils down to:
Use the following header instead of the current one:
<?xml version="1.1" encoding="UTF-8"?>
<html xmlns="" xml:lang="en">

(I personally wouldn't place a newline in the middle of the DOCTYPE definition,
it's not required or suggested by the standards, so no reason for doing so).


Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message