https://bugzilla.wikimedia.org/show_bug.cgi?id=68417
Bug ID: 68417
Summary: Hovercards removes tooltip and wastes API call on link
with href="javascript:void(0);"
Product: MediaWiki extensions
Version: master
Hardware: All
OS: All
Status: NEW
Severity: minor
Priority: Unprioritized
Component: Popups
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected]
Web browser: ---
Mobile Platform: ---
* Open your browser's developer console to the Net tab.
* visit a Flow board like http://en.wikipedia.beta.wmflabs.org/wiki/Talk:Flow
* Hover over the sort indicator ("Newest topics v" or "Recently active topics
v")
Result:
1. You don't see the tooltip for the sort.
2. Popups makes its API request for extracts|pageimages|revisions|info for the
title "You are currently reading the newest topics first. ...", but there's
(probably) no page with that title so it returns "missing".
Expected:
This link is <a href="javascript:void(0);" title="You are currently reading the
newest topics first..." ...>. Popups should not bother with such a link. It
looks like ext.popups.core.js setupTriggers() intends to exclude hrefs that
start with '#' which is often the target for JavaScript enhancements; it needs
similar code for hrefs that start with "javascript:" which fixes 2. However, by
the time setupTriggers() is called, removeTooltips() has already blanked the
title attribute, so the test needs to happen earlier.
--
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l