Make WordPress Core

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#10812 closed defect (bug) (wontfix)

Default theme used invalid atttribute

Reported by: esmi Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.8.4
Component: Validation Keywords:
Focuses: Cc:


The default theme shipped with 2.8 is invalid due to the inclusion of the 'role' attribute within multiple templates. This attribute is specific to HTML5 and, as such, should not be incorporated in an XHTML1 theme.

Whilst this invalid markup does not create any known display or performance issues, it is causing problems for users who are trying to validate their sites. It may also be indirectly creating issues within 3rd party themes where theme authors have used the default theme as a template/standard.

Change History (2)

#1 @sivel
6 years ago

  • Keywords default theme markup removed
  • Milestone Unassigned deleted
  • Resolution set to wontfix
  • Status changed from new to closed

This functionality was added on purpose with the knowledge that it was invalid XHMTL 1.0. It was decided that adding support for accessibility was more important than maintaining XHTML 1.0 validation. See #9408.

Closing as wontfix.

#2 @esmi
6 years ago

Adding "accessibility features" based on theory, or purely to tick boxes, is inherently dangerous. Role support in AT is currently patchy, at best. I'd be curious to know exactly what pan-disabilty user testing was carried out prior to this decision.

Note: See TracTickets for help on using tickets.