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

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T12777, the corresponding Phabricator task for complete and up-to-date bug report information.
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