Last modified: 2011-08-22 18:28:59 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.
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?
Including the anchor in some way might be nice, though I guess it'd need re-decoding or such.
Can still be reproduced under 1.19