mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
Core: aria-labelledby attribute no longer added with nested captions
This commit is contained in:
parent
2987dc0b25
commit
19d85b83f2
@ -1081,8 +1081,8 @@
|
||||
'aria-live' : 'polite',
|
||||
'aria-relevant' : 'all'
|
||||
});
|
||||
if (c.$table.find('caption').length) {
|
||||
k = c.$table.find('caption')[0];
|
||||
if (c.$table.children('caption').length) {
|
||||
k = c.$table.children('caption')[0];
|
||||
if (!k.id) { k.id = c.namespace.slice(1) + 'caption'; }
|
||||
c.$table.attr('aria-labelledby', k.id);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user