moinwiki/moin

Warnings from HTML 5 validation check

Opened this issue · 1 comments

The check using the "Valid HTML 5" button on the bottom of a wiki page (validator.w3.org) gives two types of warnings and infos:

Warning: Consider adding a lang attribute to the html start tag to declare the language of this document.
From line 1, column 16; to line 2, column 6
TYPE html>↩<html>↩    <
For further guidance, consult Declaring the overall language of a page and Choosing language tags.
Info: Trailing slash on void elements has no effect and interacts badly with unquoted attribute values.
From line 348, column 85; to line 348, column 155
oftware."><img src="/static/logos/moinmoin_powered.png" alt="MoinMoin powered" /></a>↩↩

Regarding void elements there is an explanation at github.com/validator/validator. IMO we should remove those trailing slashes. But it's not that urgent.

There are many places that need to be updated:

  1. templates
  2. themes
  3. python modules like converters and related tests
  4. help-en data
  5. javascript
  6. emeraldtree/tree.py:1410
  7. flatland/out/markup.py:296ff
  8. ...