I feel that a lot of developers do not use the
title attribute for tooltips, which is disappointing. This leaves developers to start creating custom tooltips because the title attribute does not give enough options.
I think there should be a way to at least provide a set of options for the
title attribute like:
timeToShowwhere a user can specify how long a user should hover before the tooltip should be shown
onHideto do things after and before the title shows
that will accept a string eventname` of the event to dispatch when the tooltip shows/hides
- some way to customize the look and style of the title attribute with css (although not sure if this is already implemented
I’m thinking this could be available at the JS level, but not sure how this could be implemented using strictly HTML.
I don’t mind making a formal proposal for this, but just wanted to get some feedback on whether or not browser vendors could implement.