Make WordPress Core

Opened 11 years ago

Closed 11 years ago

#33706 closed defect (bug) (maybelater)

Attribute aria-required is unnecessary for elements that have attribute required

Reported by: gemal Owned by:
Priority: normal Milestone:
Component: Comments Version: 4.3
Severity: normal Keywords: needs-testing
Cc: Focuses: accessibility

Description

when I try to validate my page:
​https://validator.w3.org/nu/?doc=http%3A%2F%2Fblog.dinnerbooking.com%2F2015%2F09%2F02%2Fkoekkenchef-paa-castenskiold-thorsten-schmidt-giver-tryghed-til-at-eksperimentere%2F

I get:
===================
Warning: Attribute aria-required is unnecessary for elements that have attribute required.

From line 193, column 84; to line 193, column 182

r</label> <textarea id="comment" name="comment" cols="45" rows="8" aria-required="true" required="required"></text
===================

Change History (3)

#1 @johnbillion
11 years ago

  • Component General → Comments
  • Focuses accessibility added; ui removed
  • Keywords needs-testing added

#2 @joedolson
11 years ago

It's true that aria-required is not required for required attributes, but for cross-browser and assistive technology support, it's better to have both, so that non-conforming browsers are covered.

Warnings from validators are not errors; they're indicators that you're doing something that isn't strictly conformant with code, but needs to be addressed situationally based on external factors.

This will certainly be addressed at some point in the future, but it should probably hold off for a while yet. The update cycle for screen reader users is generally very slow.

#3 @joedolson
11 years ago

  • Milestone Awaiting Review
  • Resolution → maybelater
  • Status new → closed
Note: See TracTickets for help on using tickets.