Last modified: 2011-11-18 03:35:50 UTC
I want to specify `title' attribute for `a' element generated by `#formlink' function. Content of `title' attribute is displayed as a small "tooltip" when mouse cursor stays over a link.
Created attachment 9335 [details] Implementation of `title' parameter.
I think the patch could have been a little shorter than that. :) Anyway, thanks for the good idea - I just added this in to the SVN code.
Try {{ #formlink: ... | title = ⚒ }} tooltip would be "✐", while I would expect "⚒". You made the implementation shorter, but throw away useful code: // Decode `$inTitle' first to get character entities (e. g. `→') replaced with // characters. Without this, `encodeAttribute' will replace `&' with `&' so // character entities in tooltip will be preserved, e. g. `→' will be shown // as-is, not as right arrow. $inTitle = Sanitizer::decodeCharReferences( $inTitle ); Could you please insert it back?
Ah, indeed - I couldn't think of a case where that was necessary, but this is such a case. I just added that code in; thanks.
Ok, now it works. Thanks.
I just changed the name of this parameter from 'title' to 'tooltip', because I thought it was a clearer name - sorry for the inconvenience.