Last modified: 2012-11-26 17:07:31 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T20338, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 18338 - Use WAI-ARIA landmark roles to improve accessibility
Use WAI-ARIA landmark roles to improve accessibility
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Templates (Other open bugs)
unspecified
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
: accessibility, patch, patch-reviewed
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-04-04 09:48 UTC by Peter Krantz
Modified: 2012-11-26 17:07 UTC (History)
9 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
WAI-ARIA landmark roles for Monobook skin (1.30 KB, patch)
2009-04-04 09:48 UTC, Peter Krantz
Details
WAI-ARIA landmark roles (1.13 KB, patch)
2011-04-27 13:52 UTC, Jan Paul Posma
Details

Description Peter Krantz 2009-04-04 09:48:32 UTC
Created attachment 5987 [details]
WAI-ARIA landmark roles for Monobook skin

The W3C WAI-ARIA specification defines a set of specialised "landmark"
roles. These roles provide a method to programmatically identify commonly found
sections of web page content in a consistent way. This allows assistive
technologies (e.g. a screen reader) to provide users with features which they
can use to identify and navigate to sections of page content.

Landmark roles are specified with the role attribute in HTML. In order to keep
the template markup valid (when testing with the W3C markup validation service)
this patch adds landmark role data with a small javascript after the page has
loaded.

For more information on WAI-ARIA landmark roles see:

Using WAI ARIA landmark roles by Steve Faulkner:
http://www.paciellogroup.com/blog/?p=106

and the WAI-ARIA specification.
http://www.w3.org/WAI/PF/aria/

Regards,

Peter Krantz
Comment 1 Siebrand Mazeland 2009-05-17 19:09:07 UTC
Please provide this for all skins. We do not want the functionality of the skins to deviate.
Comment 2 Daniel Kinzler 2010-08-04 08:45:20 UTC
bug 24659 asks for WAI ARIA stuff to be allowed in wiki text. That may help with allowing it for skins, too.
Comment 3 Jan Paul Posma 2011-04-27 13:52:13 UTC
Created attachment 8468 [details]
WAI-ARIA landmark roles

In fact these landmark roles can be used for all skins. Included them in mediawiki.utils.js.

Apply to trunk/phase3.
Comment 4 DieBuche 2011-04-27 14:09:28 UTC
Any reason we're not hardcoding them? Afaik, a few screen readers ignore Javascript
Comment 5 Peter Krantz 2011-04-27 16:07:49 UTC
(In reply to comment #4)
> Any reason we're not hardcoding them? Afaik, a few screen readers ignore
> Javascript

Screenreders do not ignore javascript, but it is better to code them straight into the HTML. Only problem is with sensitive people who favor validation above accessibility therefore the javascript.

But real attributes in markup is a better option.
Comment 6 Brion Vibber 2011-06-01 19:56:21 UTC
Doing this straight in the HTML would indeed be better, though the JS should usually work.

We should however actually research *AND TEST* this with actual screen readers.
Comment 7 Aryeh Gregor (not reading bugmail, please e-mail directly) 2011-06-02 14:19:21 UTC
We should definitely add this to the HTML output, not just via JS.  The role attribute is valid in HTML5.  I'd also say we should test this with actual screen readers before adding the roles, though, to make sure we understand what effect they're having.
Comment 8 Sumana Harihareswara 2011-11-09 03:55:48 UTC
Jan Paul, do you have time to revise the patch to integrate the review and suggestions here?
Comment 9 Tpt 2012-10-12 16:41:26 UTC
I've created a change that add these role directly in skins:
https://gerrit.wikimedia.org/r/#/c/27734/

It's not valid in XHTML 1.0 but jQuery UI already use it without any problem.
Comment 10 db [inactive,noenotif] 2012-11-18 12:43:18 UTC
(In reply to comment #9)
> I've created a change that add these role directly in skins:
> https://gerrit.wikimedia.org/r/#/c/27734/

Status Merged
Comment 11 Andre Klapper 2012-11-26 17:07:31 UTC
Potential regression of this commit: see bug 42394.
Thomaspt: Could you take a look?

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links