Re: Does the HTML5 required attribute have the same accessibility affect as aria-required for an ARIA defined widget?

On May 8, 2014, at 10:34 AM, John Foliot <john@foliot.ca> wrote:

> ...and James, if I am to understand the bug you filed correctly, you are
> stating that the native host semantics (i.e. HTML5's semantic) should
> "trump" ARIA? (I agree with that, but just want to be clear in my own head).

For aria-* attributes, yes. For roles, no. That's in accordance with ARIA 1.0. @role should always win, but @aria-* attributes should defer to any host language attribute that has an identical strong native semantic. 

See WAI-ARIA 1.0 section 7.5. "Conflicts with Host Language Semantics"
http://www.w3.org/TR/wai-aria/complete#host_general_conflict

Excerpt: "When WAI-ARIA states and properties correspond to host language features that have the same implicit WAI-ARIA semantic, it can be particularly problematic to use the WAI-ARIA feature. If the WAI-ARIA feature and the host language feature are both provided but their values are not kept in sync, user agents and assistive technologies cannot know which value to use. Therefore, to prevent providing conflicting states and properties to assistive technologies, host languages MUST explicitly declare where the use of WAI-ARIA attributes on each host language element conflicts with native attributes for that element. When a host language declares a WAI-ARIA attribute to be in direct semantic conflict with a native attribute for a given element, user agents MUST ignore the WAI-ARIA attribute and instead use the host language attribute with the same implicit semantic."


Clarifying a detail and apologies to Steve for forgetting the context. This was resolved partially (see comment #6, the spec is no longer in conflict with itself), but I'm still of the opinion that @required and @disabled should be in the Strong semantics table. If so, they would trump @aria-required and @aria-disabled on native HTML5 form elements. John F, if you agree, will you clone bug 23377?

https://www.w3.org/Bugs/Public/show_bug.cgi?id=23377#c6

Received on Thursday, 8 May 2014 18:03:23 UTC