Bug 238808 - Link is showing a title tooltip even though it doesn’t have a title.
Summary: Link is showing a title tooltip even though it doesn’t have a title.
Status: RESOLVED DUPLICATE of bug 114304
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: Safari Technology Preview
Hardware: Mac (Apple Silicon) Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-04-05 09:10 PDT by Oliver Williams
Modified: 2022-04-05 14:09 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Oliver Williams 2022-04-05 09:10:07 PDT
Link is showing a title tooltip even though it doesn’t have a title.
https://codepen.io/cssgrid/pen/qBpxaqx
Comment 1 Alexey Proskuryakov 2022-04-05 10:43:58 PDT
Could you please clarify which aspect of this is the bug? I see that there is a text-overflow: ellipsis on the <a> element, and a tooltip shows up when text doesn't fit. This seems like desirable behavior.
Comment 2 Oliver Williams 2022-04-05 10:48:58 PDT
I made a custom tooltip for the link (to show the full text of truncated text when the user hovers) but Safari (unlike Chrome canary) shows both my custom tooltip and the native browser title tooltip (you need to hover for a bit longer to see that one)
Comment 3 Oliver Williams 2022-04-05 11:14:35 PDT
(In reply to Alexey Proskuryakov from comment #1)
> Could you please clarify which aspect of this is the bug? I see that there
> is a text-overflow: ellipsis on the <a> element, and a tooltip shows up when
> text doesn't fit. This seems like desirable behavior.

The link doesn’t even have a title and yet is showing the browser native tooltip on hover. Surely that is a bug?
Comment 4 Alexey Proskuryakov 2022-04-05 12:56:02 PDT
> Safari (unlike Chrome canary) shows both my custom tooltip and the native browser title tooltip

I now understand what motivated the report. I initially tested with an older Safari version, where the custom tooltip didn't show up. 

However, I don't see any reason to agree that this is a WebKit bug, showing a tooltip for truncated text seems natural and user friendly. Nothing says that a browser cannot show tooltips for anything but title.

Duping to bug 114304 that tracks adding a way to disable this behavior.

*** This bug has been marked as a duplicate of bug 114304 ***
Comment 5 Oliver Williams 2022-04-05 14:09:02 PDT
Thanks for the response. I agree that it’s useful behaviour, but native browser tooltips don’t look great. We definitely need a way to turn off this behaviour for custom tooltips.