Accessibility: make columnheader the primary role of the element
authorDerk-Jan Hartman <hartman@videolan.org>
Wed, 7 Aug 2013 15:22:59 +0000 (17:22 +0200)
committerTheDJ <hartman.wiki@gmail.com>
Wed, 7 Aug 2013 15:34:33 +0000 (15:34 +0000)
The role attribute overrides implicit roles. Since here the
columnheader role of the th is more important than the secondary role
of being a button, we should force it explicitly in that order.

Follow up of: I2b937eba605b7e6a98612a02c75eb9e7f3477527

Change-Id: I07211263876a58c62e5a349eab6f78e43d412680

resources/jquery/jquery.tablesorter.js

index 115a49a..cac056e 100644 (file)
                                        .addClass( table.config.cssHeader )
                                        .prop( 'tabIndex', 0 )
                                        .attr( {
-                                               role: 'button',
+                                               role: 'columnheader button',
                                                title: msg[1]
                                        } );
                        }