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

SVG title when used via HTML img

From: Charles Pritchard <chuck@jumis.com>
Date: Fri, 28 Oct 2011 04:55:04 -0700
Message-ID: <4EAA9818.20102@jumis.com>
To: www-svg@w3.org
I'm not sure which group to bring this issue to:

<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.

<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?

I do understand that using alt with <img> is the standard practice.

Received on Friday, 28 October 2011 11:55:30 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:54:32 UTC