Making WordPress.org

Opened 10 months ago

#6586 new defect (bug)

Remove multiple complementary landmarks from widgets

Reported by: alexstine's profile alexstine Owned by:
Milestone: Priority: normal
Component: Handbooks Keywords:
Cc:

Description

On a developer handbook page, there are multiple complementary landmarks injected by widgets.

Example page: https://developer.wordpress.org/block-editor/

Problem code:

<div id="secondary" class="widget-area" role="complementary">
		<div id="secondary-content">
				<aside id="search-7" class="widget widget_search">
				</aside>
				<aside id="handbook_pages-3" class="widget widget_wporg_handbook_pages">
				</aside>
		</div>
</div>

Solution: Since there is already a wrapping ARIA role, remove the aside tags and replace them with divs or another HTML element. Aside tag is HTML5 and produces a complementary landmark when used.

Change History (0)

Note: See TracTickets for help on using tickets.