Change role attribute to data-caption

This change unfortunately breaks BC but it's not possible to do without.
Previously, the role attribute was used to denote the caption for a table field
in it's collapsed state. This is not the correct use for the role attribute,
which is why the new attribute is now data-caption.