[wp-meta] [Making WordPress.org] #6586: Remove multiple complementary landmarks from widgets

Making WordPress.org noreply at wordpress.org
Tue Nov 22 04:22:15 UTC 2022


#6586: Remove multiple complementary landmarks from widgets
--------------------------+--------------------
 Reporter:  alexstine     |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:
Component:  Handbooks     |   Keywords:
--------------------------+--------------------
 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.

-- 
Ticket URL: <https://meta.trac.wordpress.org/ticket/6586>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org


More information about the wp-meta mailing list