You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It already has a title attribute, but that is actually the displayed title. What I'd like to also be able is to set the html title attribute to show up as an explanatory tooltip (it does in most browsers).
The text was updated successfully, but these errors were encountered:
FWIW, W3.org allows that implementation, but it does have usability issues.
title is a misleadingly named argument and is actually rendered in HTML as <label> for inputs and in a <span> for buttons. Renaming it would break existing solutions. The alternative would be to create an argument with another misleading name. How about title_attr which becomes title="mytitle" in HTML?
Whatever its name, I think it would be useful, but I don't know whether it would be better to implement this in retail form rendering.
I obviously would prefer this not to be in retail form rendering. :-)
title_attr is fine by me - anything thats not that easy to misplace. In the long run I would opt to add another attribute that can be used instead of title (maybe name?), then deprecate title and later do the same dance with title_attr.
name would probably be the worst choice possible to replace title because it is already used and gets rendered as the name="mywidgetname" attribute in HTML.
title would be better named label as would make it more consistent with the rendered HTML and its true purpose. Nonetheless any renaming would mean not insignificant refactoring and backward incompatibility (and potentially angry developers). I would defer to the sage and wise project managers for advice on this point.
You can submit a pull request with your desired change to add your feature request. PRs get more love than a mere feature request. 😉
It already has a title attribute, but that is actually the displayed title. What I'd like to also be able is to set the html title attribute to show up as an explanatory tooltip (it does in most browsers).
The text was updated successfully, but these errors were encountered: