[wp-trac] [WordPress Trac] #30083: Twenty Fifteen: Sub Menu Navigation Toggles are Invalid HTML

WordPress Trac noreply at wordpress.org
Thu Oct 23 14:25:51 UTC 2014


#30083: Twenty Fifteen: Sub Menu Navigation Toggles are Invalid HTML
---------------------------+-----------------------------
 Reporter:  davidakennedy  |      Owner:
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  Bundled Theme  |    Version:  trunk
 Severity:  normal         |   Keywords:
  Focuses:  accessibility  |
---------------------------+-----------------------------
 While testing Twenty Fifteen for accessibility, the Accessibility team
 found that:

 * Nesting a `<button>` element inside of an `<a>` element is invalid HTML.
 * The W3C Validator reports: "The element button must not appear as a
 descendant of the a element."
 * This happens in the main navigation, in the sub-menus.
 * All in all, the keyboard accessibility of the current code works well.
 * For screen readers, the addition of the ARIA is excellent, but we could
 also make the text more specific, so screen reader users know what they
 are expanding. So: "Expand Sub-Menu" instead of just "Expand". Or
 something similar. But first we need to figure out the best solution for
 the toggle.

 I am researching some solutions.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/30083>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list