[x] Bugfix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
Proposed changes
Remove the trailing slash from meta (void) elements.
Background
HTML5 has its own syntax and is not XHTML as is often mistaken.
For tags which do not allow child elements aka as void element, it is not allowed to use a trailing slash. In practice, however, this is not a problem due to the browser's excellent error tolerance.
Since different code styles are used in the head, this is a standardization to the formally “correct” style.
Proposed changes
Remove the trailing slash from meta (void) elements.
Background
HTML5 has its own syntax and is not XHTML as is often mistaken. For tags which do not allow child elements aka as void element, it is not allowed to use a trailing slash. In practice, however, this is not a problem due to the browser's excellent error tolerance.
Since different code styles are used in the head, this is a standardization to the formally “correct” style.
Validator to test: https://validator.w3.org/nu/
Checklist
npm run test
to verify the unit tests pass