[dokuwiki] [patch] WAI ARIA landmark roles for improved accessibility in default template

  • From: Peter Krantz <peter.krantz@xxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Fri, 3 Apr 2009 23:22:04 +0200

The 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

The patch adds landmark roles for navigation, main, complementary, contentinfo
and banner.

For more information on WAI-ARIA landmark roles see:

Using WAI ARIA landmark roles by Steve Faulkner:

and the WAI-ARIA specification.


Peter Krantz

Other related posts: