Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warnings from HTML 5 validation check #1704

Open
UlrichB22 opened this issue Jun 27, 2024 · 1 comment
Open

Warnings from HTML 5 validation check #1704

UlrichB22 opened this issue Jun 27, 2024 · 1 comment
Labels

Comments

@UlrichB22
Copy link
Collaborator

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
Copy link
Collaborator Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant