Skip to content

Commit

Permalink
Merge pull request #7449 from mitya57/no-xmlns
Browse files Browse the repository at this point in the history
Do not include xmlns attribute with HTML 5 doctype
  • Loading branch information
tk0miya committed Apr 9, 2020
2 parents 9002b6c + b0ddc26 commit 9ff5b21
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 9ff5b21

Please sign in to comment.