moinwiki / moin

MoinMoin Wiki Development (2.0+), unstable, for production please use 1.9.x.
https://moinmo.in/
Other
299 stars 89 forks source link

Warnings from HTML 5 validation check #1704

Open UlrichB22 opened 2 months ago

UlrichB22 commented 2 months ago

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:

  1. 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.
  2. 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>↩↩
UlrichB22 commented 2 months ago

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. ...