fix #7771 - prefer the caption content for the value, over the data-caption value