This is a great module but would really benefit from <caption> and <tfoot> support. My tables need a caption/title and optional footer and as it stands I can see no option but to add these as separate fields to the content type. It would be great if we could use these tags to semantically link this information to the associated table.

I'd be happy to take a look at this myself when I have a minute but thought I'd check whether it was feasible or not first.

UPDATE:

I've just noticed a similar issue on this topic. Apologies, I only searched for tfoot/footer rather than caption. I do think this is still relevant though as a table footer would still be useful and there's no mention of that in the other thread.

https://www.drupal.org/node/1251738

Comments

harrick’s picture

Issue summary: View changes
mgifford’s picture

Following from D8's #843708: Add option to set caption & remove summary in the html table (Accessibility) would be good to include summary/detail options too.

Hadn't seen use of tfoot before...
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tfoot

lolandese’s picture

Merging with #2261379: Allow for better description of tables (closing that one as a dup). Adding from there the <summary> tag and <table aria-describedby="summary"> attribute.

lolandese’s picture

Note that caption support was added in #1251738: Allow ability to set table caption. That leaves us with the other table tags and attributes suggested above.

lolandese’s picture

Version: 7.x-2.2 » 7.x-3.x-dev