This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 23044 - wonder if we should allow role="presentation" on a <a>
Summary: wonder if we should allow role="presentation" on a <a>
Status: RESOLVED WONTFIX
Alias: None
Product: HTML WG
Classification: Unclassified
Component: Using ARIA in HTML (show other bugs)
Version: unspecified
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: dmacdona
QA Contact: This bug has no owner yet - up for the taking
URL:
Whiteboard:
Keywords: a11y
Depends on:
Blocks:
 
Reported: 2013-08-22 22:48 UTC by dmacdona
Modified: 2014-01-29 22:46 UTC (History)
3 users (show)

See Also:


Attachments
Image of a menu with a too level anchor with a role of presention (30.52 KB, image/png)
2013-08-23 21:58 UTC, dmacdona
Details

Description dmacdona 2013-08-22 22:48:02 UTC
Interesting example

http://lassonde.yorku.ca/

There are several accessibility problems on the page, but there is an interesting use of presentation. In the drop down menu,(discover, apply, students etc) they use a jquery drop down called superfish. They have added role "presentation" to each of the top level menu items, because they are not links to destinations, activating them opens the menu item below it.

The menu itself can be tabbed through item by item... and they have given the top menu item a role of presentation so AT will not activate the # link which forces a page reload, 

We have in our table for using wai aria that the <a> tag should not be given a role of presentation. I wonder if this above might be a valid use case. It seems to read fine in JAWS, VO, and mobile.
Comment 1 dmacdona 2013-08-23 21:06:46 UTC
Further to this comment... I find no nothing forbiding the use of presentation on an anchor...
http://www.w3.org/TR/wai-aria/roles#presentation

Suggest we just remove reference to it in the table, or discuss the condition of an anchor tag where it would be poorly advised...
Comment 2 steve faulkner 2013-08-23 21:11:49 UTC
(In reply to comment #1)
> Further to this comment... I find no nothing forbiding the use of
> presentation on an anchor...
> http://www.w3.org/TR/wai-aria/roles#presentation
> 
> Suggest we just remove reference to it in the table, or discuss the
> condition of an anchor tag where it would be poorly advised...

hi dave,

use of role=presentation on controls and links is not allowed in HTML refer to the strong semantics table: http://www.w3.org/html/wg/drafts/html/master/dom.html#sec-strong-native-semantics.

I haven;t had chance to review the example you cited yet, will do so, but in mean time please leave current advice as is.
Comment 3 steve faulkner 2013-08-23 21:16:35 UTC
(In reply to comment #1)
> Further to this comment... I find no nothing forbiding the use of
> presentation on an anchor...
> http://www.w3.org/TR/wai-aria/roles#presentation
> 
> Suggest we just remove reference to it in the table, or discuss the
> condition of an anchor tag where it would be poorly advised...

Also note:

"If an element with a role of presentation is focusable, user agents MUST ignore the normal effect of the role and expose the element with implicit native semantics, in order to ensure that the element is both understandable and operable." 

[1] http://www.w3.org/TR/wai-aria/roles
Comment 4 dmacdona 2013-08-23 21:58:17 UTC
Created attachment 1390 [details]
Image of a menu with a too level anchor with a role of presention
Comment 5 dmacdona 2013-08-23 22:10:47 UTC
No worries, as an editor I wouldn't make significant changes on a bug I file... without talking it over...

I normally would say simply remove the role="presentation" from the anchor... however, I'm aware that the team has a very competent and technical blind employee, who I expect worked on it to some extent...  

So I'd like to really flesh this out, and ensure we haven't necessarily forbidden something which may be somewhat helpful. I'll see if I can talk to him...
Comment 6 dmacdona 2013-08-24 17:34:24 UTC
I spoke with the accessibility guy on the project... It appears to be an artifact of an enthusiastic developer ... will close bug...
Comment 7 dmacdona 2014-01-17 13:20:16 UTC
This can now be closed