Skip to content
Snippets Groups Projects
Commit 1fff89b8 authored by uzairr's avatar uzairr
Browse files

Replace main tag with div to compliance HTML5 standard

Course outline page uses two main tags that violates modern
HTML5 standard that recommends only single main tag on a webpage.
To make it compliance with modern standard the enclosing main tag
is replaced with div which will improve accessibility.

LEARNER-4233
parent 735158ac
No related branches found
No related tags found
No related merge requests found
......@@ -80,7 +80,7 @@ from openedx.features.portfolio_project import INCLUDE_PORTFOLIO_UPSELL_MODAL
</div>
</header>
<div class="page-content">
<main class="page-content-main">
<div class="page-content-main">
% if course_home_message_fragment:
${HTML(course_home_message_fragment.body_html())}
% endif
......@@ -94,7 +94,7 @@ from openedx.features.portfolio_project import INCLUDE_PORTFOLIO_UPSELL_MODAL
% if outline_fragment:
${HTML(outline_fragment.body_html())}
% endif
</main>
</div>
<aside class="page-content-secondary course-sidebar">
% if has_goal_permission:
<div class="section section-goals ${'' if current_goal else 'hidden'}">
......
......@@ -12,7 +12,7 @@ from django.utils.translation import ugettext as _
from openedx.core.djangolib.markup import HTML, Text
%>
<main role="main" class="course-outline" id="main" tabindex="-1">
<main class="course-outline" id="main" aria-label="Content" tabindex="-1">
% if blocks.get('children'):
<ol class="block-tree">
% for section in blocks.get('children'):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment