Currently MoinMoin does not produce valid html

This pages has multiple bugs on it.

Steps to reproduce

Try the "Valid HTML 4.01" button on some pages. The errors slightly differ from page to page.

Example

attribute generated

URL:

  1. http://moinmoin.wikiwikiweb.de (checked with http://validator.w3.org/)

    • Error: Line 217 column 2143: there is no attribute "GENERATED".

This is true. Not sure why this is there but it is in Moin 1-6-dev in MoinMoin/theme/__init__.py Line 264:

homelink = (request.formatter.interwikilink(1, title=title, id="userhome", generated=True, *interwiki) +

Well one could just delete it, but maybe it has some use? I have searched the themes and have found no CSS that uses it. If it indeed has use I suggest not to use an illegal attribute but instead use something like class="generated". I would have done a patch but I am not sure about the meaning. Can somebody explain? -- ThiloPfennig 2006-12-07 22:35:47

(!) fixed in 1.5 branch

script language Javascript not indicated

Pages with Javascript should define the language in a meta tag

 <meta http-equiv="Content-Script-Type" content="text/javascript">

I have done a little patch that I think could solve this if i have understood things correctly:

jscript.diff

Non unique IDs / invalid IDs

This one seems to be connected to the use of Include or MonthCalendar macros. Try e.g. validation of

there is no attribute "TYPE".

<ol type="1">

True, allowed are the attributes of %coreattrs http://www.w3.org/TR/html401/sgml/dtd.html#coreattrs

(!) I guess this won't get fixed. Unless someone has an idea how we can fix it without regressions in what wiki markup for numbered lists can do now.

Some stuff could be solved by inventing some css classes for different kind of enumeration styles maybe, but I guess the last part of the following citation won't work by CSS:

Citing HelpOnLists: start it with a number template "1.", "a.", "A.", "i." or "I.". To start a numbered list with a certain initial value, append "#value" to the number template.

My personal opinion on <OL> numbered list markup specs is that the specs are broken. -- ThomasWaldmann 2006-12-08 13:15:48

This ol-type is "Valid HTML 4.01 Transitional" but the header in moin emitted pages specifies doctype strict (http://www.w3.org/TR/html4/strict.dtd). Should this be changed?

Details

This Wiki.

Workaround

Discussion

I think this page is wrong in bugs, maybe because it does not fit the format. A bug should be closeable. This does not seem to... ;)

See also ../HTMLValidationFails

Used validators

Plan


CategoryMoinMoinBug

MoinMoin: MoinMoinBugs/Invalid HTML 4.01 (last edited 2008-03-21 22:04:41 by ThomasWaldmann)