From 56e35716bca7569ec796ca5829f7921319abdc51 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Fri, 20 Nov 2009 05:53:40 +0000 Subject: #513946 by Everett Zufelt and mgifford: Enhance accessibility of progress bar by adding an ARIA live region. --- misc/progress.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'misc') diff --git a/misc/progress.js b/misc/progress.js index 36b297fad..a8ade3cf6 100644 --- a/misc/progress.js +++ b/misc/progress.js @@ -18,7 +18,9 @@ Drupal.progressBar = function (id, updateCallback, method, errorCallback) { this.updateCallback = updateCallback; this.errorCallback = errorCallback; - this.element = $('
').attr('id', id); + // The WAI-ARIA setting aria-live="polite" will announce changes after users + // have completed their current activity and not interrupt the screen reader. + this.element = $('
').attr('id', id); this.element.html('
' + '
' + '
 
'); -- cgit v1.2.3