mirror of
https://github.com/Mottie/tablesorter.git
synced 2025-01-12 15:24:21 +00:00
Core: fix ARIA caption label reference
This commit is contained in:
parent
09c3091066
commit
317d0585ad
@ -1080,7 +1080,9 @@
|
|||||||
'aria-relevant' : 'all'
|
'aria-relevant' : 'all'
|
||||||
});
|
});
|
||||||
if (c.$table.find('caption').length) {
|
if (c.$table.find('caption').length) {
|
||||||
c.$table.attr('aria-labelledby', 'theCaption');
|
k = c.$table.find('caption')[0];
|
||||||
|
if (!k.id) { k.id = c.namespace.slice(1) + 'caption'; }
|
||||||
|
c.$table.attr('aria-labelledby', k.id);
|
||||||
}
|
}
|
||||||
c.widgetInit = {}; // keep a list of initialized widgets
|
c.widgetInit = {}; // keep a list of initialized widgets
|
||||||
// change textExtraction via data-attribute
|
// change textExtraction via data-attribute
|
||||||
|
Loading…
Reference in New Issue
Block a user