rmm5t / jquery-timeago

:clock8: The original jQuery plugin that makes it easy to support automatically updating fuzzy timestamps (e.g. "4 minutes ago").
http://timeago.yarp.com
MIT License
3.82k stars 710 forks source link

title on abbr tag shows time, only date on time tag #347

Closed LiamDawe closed 5 years ago

LiamDawe commented 5 years ago

I am wondering something, the abbr tag title on hover shows date and time, but if we use the time html tag on hover the title only holds the date.

Why is this?

rmm5t commented 5 years ago

By default, the title becomes whatever was set as the original inner html value of the abbr or time tag.

However, if the original time tag already has a title attribute value, that value is preserved.

https://github.com/rmm5t/jquery-timeago/blob/master/jquery.timeago.js#L214-L216

Btw, please take any further questions like this to a site like StackOverflow. GitHub Issues are best reserved for discussing feature requests and bug reports.

LiamDawe commented 5 years ago

Okay, is this behaviour actually documented anywhere? If so, take it as a documentation improvement request.

Btw, please take any further questions like this to a site like StackOverflow. GitHub Issues are best reserved for discussing feature requests and bug reports.

I thought it was a bug.