eeditiones / tei-publisher-components

Web components used by TEI Publisher and apps generated by it
https://cdn.tei-publisher.com/
GNU General Public License v3.0
18 stars 14 forks source link

Accept global title attribute #105

Open awagner-mainz opened 2 years ago

awagner-mainz commented 2 years ago

Today I wanted to migrate a couple of elements defined in my odd from an inline to a link behaviour. In both cases, I want them to offer some additional information (a normalized tag for the text span being contained in the element) in a hover popup. While in the inline behaviour I have defined a code template <span title="[[title]]">[[content]]</span> and a corresponding title parameter, this did not work so well with the link behaviour. Coming to think of it, title is a global html attribute and I would suggest to offer title as an optional parameter for all behaviours that create "simple" html elements, like (at least) anchor, block, heading, inline, listItem etc.

Whether to implement this in fact as html title attribute or, e.g. for accessibility reasons, in other ways could be a matter of further debate perhaps?