httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 43649] mod_autoindex is generating invalid XHTML markup
Date Mon, 02 Jan 2012 21:28:36 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=43649

Adam Gabryś <adam.gabrys@live.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|PatchAvailable              |
             Status|RESOLVED                    |REOPENED
           Platform|All                         |PC
            Version|2.2.6                       |2.2.21
         Resolution|FIXED                       |
         OS/Version|Linux                       |FreeBSD
           Severity|normal                      |trivial

--- Comment #8 from Adam Gabryś <adam.gabrys@live.com> 2012-01-02 21:28:36 UTC ---
mod_autoindex is generating invalid XHTML 1.0 Transitional for fancy list.
Configuration:
IndexOptions Charset=utf-8 XHTML FancyIndexing FoldersFirst VersionSort
IndexHeadInsert "<meta http-equiv=\"content-type\" content=\"text/html;
charset=utf-8\" />"

HeaderName secret.html
ReadmeName secret.html

There is problem with hr markups:
document type does not allow element "hr" here; missing one of "button", "ins",
"del" start-tag

You can read it here:
http://validator.w3.org/check?uri=http%3a%2f%2fgabrys.biz%2fimages%2f

Its should be outside pre markup. They are created in lines 1603-1608 and
1814-1819. Problem can be solved with replece specifed lines:
1604 -> ap_rputs("</pre><hr", r);
1608 -> ap_rputs("><pre>", r);
insert ap_rputs("</pre>\n", r); under 1813
1819 ap_rputs(">\n", r);
delete 1821, 1822, 1823

I don't test it, because I am a new FreeBSD and Apache user, and I not able to
do a lot of things now :/

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message