I just looked into the same thing - only I wanted to use it to display accesskeys:
*[accesskey]:after {
content:' [' attr(accesskey) ']';
}
Not so keen on having to write the accesskey value more than one place cause that usually adds the risk of not keeping the values the same and that would be terible UE-wise =0/