Skip to content

Fix invalid, unnecessary XHTML vestiges in root element#60

Open
ches wants to merge 1 commit into
zyro:masterfrom
ches:fix-xhtml-root
Open

Fix invalid, unnecessary XHTML vestiges in root element#60
ches wants to merge 1 commit into
zyro:masterfrom
ches:fix-xhtml-root

Conversation

@ches

@ches ches commented Apr 10, 2016

Copy link
Copy Markdown
Contributor

If xml:lang is kept, lang must also be used and they must be exactly the same. This was failing validation out of the box.

The xmlns and xml:lang are no longer needed for HTML5:

http://diveintohtml5.info/semantics.html#html-element

Finally, Hugo has a languageCode config setting, let's use it.

If `xml:lang` is kept, `lang` must also be used *and they must be
exactly the same*. This was failing validation out of the box.

The `xmlns` and `xml:lang` are no longer needed for HTML5:

    http://diveintohtml5.info/semantics.html#html-element

Finally, Hugo has a `languageCode` config setting, let's use it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant