TiddlyWiki.org

Ticket #388 (closed enhancement: fixed)

Opened 10 months ago

Last modified 4 months ago

ALT attribute for images

Reported by: FND Assigned to: FND
Priority: minor Milestone: 2.3.1
Component: core Version:
Severity: medium Keywords:
Cc:

Description

Images generated from TiddlyWiki markup currently do not have an ALT attribute.

This means that when the respective image file is not available/accessible, there will be no placeholder, just an invisible element. (Not to mention that the resulting HTML code is invalid.)

That in turn can easily lead to confusion, so there should always be an ALT attribute (either using the specified title, or the filename as a fallback value).

Patch attached. (Note that there's some odd behavior that I haven't looked into yet; when a link has been specified, the text disappears on mouse-over/hover.)

Attachments

imgAlt.patch (0.5 kB) - added by FND on 10/10/07 11:27:40.

Change History

10/10/07 11:27:40 changed by FND

  • attachment imgAlt.patch added.

10/10/07 11:30:47 changed by FND

link: discussion on [twdev]

12/10/07 16:57:08 changed by MartinBudden

  • version deleted.
  • milestone changed from unscheduled to 2.3.

07/11/07 15:15:57 changed by FND

  • owner set to FND.
  • status changed from new to assigned.

07/11/07 19:36:49 changed by MartinBudden

  • priority changed from undefined to minor.

12/11/07 12:28:13 changed by JeremyRuston

The image formatter already supports the image.title attribute; the difference between .title and .alt is subtle:

http://juicystudio.com/article/using-title-attribute.php

I'm not sure that it's worth implementing support for both features - I can't imagine many mainstream TW users caring about the difference between them. I wondered whether it made sense instead to just put the current .title attribute text into the .alt attribute as well?

29/11/07 16:26:36 changed by MartinBudden

  • milestone set to 2.3.1.

30/01/08 15:23:24 changed by JeremyRuston

  • status changed from assigned to closed.
  • resolution set to wontfix.

Won't fix because of Jeremy's comment of 12/11/07.

30/01/08 20:51:53 changed by FND

  • status changed from closed to reopened.
  • resolution deleted.

Reopened: This should be fixed, as the ALT attribute is required for images according to the specs.

18/03/08 12:30:46 changed by JeremyRuston

  • status changed from reopened to closed.
  • resolution set to fixed.

Fixed in changeset:4044