Bug in caption support?
Bug in caption support?
It seems like adding caption-side: bottom;
to a <caption>
element results in the caption being between the header and the body of the table instead of below the table.
https://github.com/DataTables/DataTablesSrc/blob/master/js/core/core.constructor.js#L390 suggests that putting the CSS on the <table>
tag instead of the <caption>
tag fixes everything, but https://www.w3.org/TR/CSS2/tables.html#caption-position suggests it is supposed to go on the <caption>
tag.
https://jsfiddle.net/pkv3u8oc/1/ demonstrates the issue.
Answers
Completely agree - thank you. The bug was in my understanding of how the caption tag worked. I've just altered the DataTables core to comply with the standards.
It will be in the nightly shortly, and 1.10.13 when released.
Regards,
Allan