Revision: 1616
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at October 31, 2006 01:36 by rduv
Initial Code
Firefox doesn't display a popup for the alt attribute for images. While this is according to spec, it's slightly annoying to put the same text in both the alt and the title. Put the following in your ApplicationHelper to copy the alt to the title for every image. Please don't tell me how wrong this is. I don't care. module ApplicationHelper def image_tag(location, options) options[:title] = options[:alt] if options[:alt] super(location, options) end end
Initial URL
Initial Description
Initial Title
image tag alt and title copy
Initial Tags
Initial Language
Ruby