Warnings from HTML 5 validation check
Opened this issue · 1 comments
UlrichB22 commented
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>↩↩
UlrichB22 commented
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:
- templates
- themes
- python modules like converters and related tests
- help-en data
- javascript
- emeraldtree/tree.py:1410
- flatland/out/markup.py:296ff
- ...