W3C home > Mailing lists > Public > www-svg@w3.org > October 2011

Re: SVG title when used via HTML img

From: Erik Dahlstrom <ed@opera.com>
Date: Fri, 28 Oct 2011 10:03:11 -0700
To: www-svg@w3.org
Message-ID: <op.v32mzlusgeuyw5@mbp-2.local>
On Fri, 28 Oct 2011 04:55:04 -0700, Charles Pritchard <chuck@jumis.com>  
wrote:

> I'm not sure which group to bring this issue to:
>
> Proposal:
> <img src="myimage.svg" />
> would pick up the title in the SVG file and use it as though title were  
> set on the image tag.
>
> It works for <iframe src="myimage.svg"> and for inline SVG. But with  
> <img src>, no luck.
>
> Also,
> <img src="myimage.svg" longdesc="myimage.svg" /> seems a little  
> redundant.
>
> SVG has <title> and <description>, but the <img> tag wasn't designed  
> with those in mind.
> None of the targets <img> previously supported contained reasonably  
> useful title/description content.
>
> Ideas anyone?
>
> Google's SVG viewer also seems to suffer, it does not show the <title>  
> of the image.
>
> All viewers understand that <img> means static SVG content, no scripts,  
> limited references, and so forth. But it seems that most of them neglect  
> to process title. Am I doing something wrong there?

They don't neglect it, it's just that all interactivity inside the svg  
file is disabled, it's as if the svg was a raster image.

What you're proposing seems similar to asking for EXIF data to be used as  
title.

-- 
Erik Dahlstrom, Core Technology Developer, Opera Software
Co-Chair, W3C SVG Working Group
Personal blog: http://my.opera.com/macdev_ed
Received on Friday, 28 October 2011 17:03:54 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:49 GMT