Skip to content

Commit

Permalink
Do not include xmlns attribute with HTML 5 doctype
Browse files Browse the repository at this point in the history
  • Loading branch information
mitya57 committed Apr 9, 2020
1 parent b4db396 commit b0ddc26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sphinx/themes/basic/layout.html
Expand Up @@ -108,7 +108,7 @@ <h3>{{ _('Navigation') }}</h3>
{%- if html_tag %}
{{ html_tag }}
{%- else %}
<html xmlns="http://www.w3.org/1999/xhtml"{% if language is not none %} lang="{{ language }}"{% endif %}>
<html{% if not html5_doctype %} xmlns="http://www.w3.org/1999/xhtml"{% endif %}{% if language is not none %} lang="{{ language }}"{% endif %}>
{%- endif %}
<head>
{%- if not html5_doctype and not skip_ua_compatible %}
Expand Down

0 comments on commit b0ddc26

Please sign in to comment.