netp_npokon (netp_npokon) wrote in suggestions,

Alt attribute for the lj user markup tag

Alt attribute for the lj user markup tag

Short, concise description of the idea
Allow users to change the representation of links generated by <lj user> tag.

Full description of the idea
Sometimes users want to write LJ username links in the way they seamlessly fit the surrounding text. For example:
Yesterday I met Brad Fitzpatrick
instead of:
Yesterday I met brad
Usually people create such links with different LJ clients, but there's a risk they'll break after the next change in the LJ's HTML generator.

I suggest to add an optional 'alt' attribute to the 'lj' tag to replace the link's text with this attribute's value. The above example will then look like:
Yesterday I met <lj user="brad" alt="Brad Fitzpatrick">

An ordered list of benefits
  • Non-English speakers will be able to spell their friend's names in the correct forms (sometimes it's a problem)
  • People won't need to write lots of raw HTML code to simulate this a tag, so their posts will be always consistent with the current LJ's HTML generator.

An ordered list of problems/issues involved
  • Maybe, there'll be some problems with too long values of 'alt', but these cases can be easily circumvented, I guess.

An organized list, or a few short paragraphs detailing suggestions for implementation
  • I suppose, you use XSLT for text parsing. Then it should be trivial to introduce a new XML tag attribute.
Tags: lj-specific markup, § implemented
  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded