Last modified: 2011-08-22 18:28:59 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 10777 - Anchor only links create A tags without tooltips
Anchor only links create A tags without tooltips
Status: NEW
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
1.20.x
All All
: Low minor (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-08-02 13:13 UTC by Andrew Dunbar
Modified: 2011-08-22 18:28 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Andrew Dunbar 2007-08-02 13:13:08 UTC
You can make a link to an anchor within the current page by doing [[#anchor]] or [[#anchor|text]].
Normally every link has its "text" field (tooltip) set to the name of the page the link points to.
This is not the case in the previous examples where the text field is not set at all.
This is a minor point but may be unexpectd behaviour. It causes the JavaScript extension I'm working on to break.
Comment 1 Rob Church 2007-08-06 04:02:41 UTC
This seems to be because the resulting Title has no "text form", just a fragment, thus Title::getPrefixedText() returns '', which is dutifully HTML-escaped and set as the `title` attribute of the link, thus the little tooltip doesn't show up.

What's the best expected behaviour here?
Comment 2 Brion Vibber 2007-08-08 17:29:00 UTC
Including the anchor in some way might be nice, though I guess it'd need re-decoding or such.
Comment 3 David Richfield 2011-08-22 18:28:10 UTC
Can still be reproduced under 1.19

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links