Skip to content

Commit

Permalink
Do not set the default role for the body tag (#542)
Browse files Browse the repository at this point in the history
* Do not set the default role for the body tag

See https://www.w3.org/TR/html5/sections.html#the-body-element And:
sphinx-doc/sphinx#3495

* Remove nav role from nav tag
  • Loading branch information
Blendify committed Jan 15, 2018
1 parent 636f37a commit 5062c20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sphinx_rtd_theme/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@

</head>

<body class="wy-body-for-nav" role="document">
<body class="wy-body-for-nav">

{% block extrabody %} {% endblock %}
<div class="wy-grid-for-nav">
Expand Down Expand Up @@ -152,7 +152,7 @@
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">

{# MOBILE NAV, TRIGGLES SIDE NAV ON TOGGLE #}
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
<nav class="wy-nav-top" aria-label="top navigation">
{% block mobile_nav %}
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href="{{ pathto(master_doc) }}">{{ project }}</a>
Expand Down

0 comments on commit 5062c20

Please sign in to comment.