dcorking / google-wave-resources

Automatically exported from code.google.com/p/google-wave-resources
0 stars 0 forks source link

Image element should embed a tag attribute containing the caption of the image #771

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
The Python method
element.Image(url="http://.../smiley.png", caption=":)")
generates the following HTML code:

-------------
<img
  contenteditable="false"
  alt=":)"
  src="http://.../smiley.png">
-------------

ideally it would generate

-------------
<img
  contenteditable="false"
  alt=":)"
  title=":)"  <------
  src="http://.../smiley.png">
-------------

The reason for this is that it occasionally is beneficial to add extra text
information to an image, information which should be tightly coupled to the
image and only displayed upon request (ie when hovering with the mouse over
the image).

An text to image replacemente robot might unintentionally replace a
character sequence with an image. Having the title tag would let the
recipient of the message still decode the original text message with this
additional piece of information.

Best regards,
Daniel

Original issue reported on code.google.com by soundlin...@gmail.com on 29 May 2010 at 1:55

GoogleCodeExporter commented 8 years ago
Thanks for filing, I've pinged the internal bug.

Original comment by pamela.fox on 3 Jun 2010 at 12:19