Core: fix ARIA caption label reference

This commit is contained in:
Mottie 2014-10-02 12:07:22 -05:00
parent 09c3091066
commit 317d0585ad

View File

@ -1080,7 +1080,9 @@
'aria-relevant' : 'all'
});
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
// change textExtraction via data-attribute