W3C home > Mailing lists > Public > public-html@w3.org > March 2011

Re: example spec text for longdesc

From: Leif Halvard Silli <xn--mlform-iua@xn--mlform-iua.no>
Date: Wed, 30 Mar 2011 17:01:25 +0200
To: Henri Sivonen <hsivonen@iki.fi>
Cc: HTMLWG WG <public-html@w3.org>
Message-ID: <20110330170125534947.62fdf548@xn--mlform-iua.no>
Leif Halvard Silli, Wed, 30 Mar 2011 16:54:57 +0200:
>> In particular, merely "reinstating" longdesc would presumably allow it
>> on <img> but not on <svg>. Yet, we should except inline SVG to be used
>> more and more for logos, cartoons, charts, illustrations and
>> (eventually) email banners. John Foliot mentioned <desc> in another
>> message
>> (http://lists.w3.org/Archives/Public/public-html/2011Mar/0626.html), but
>> if we agree that including a description inline inside <desc> inside an
>> SVG graphic that's inline in a HTML document is appropriate and
>> sufficient, what reason is there to insist on a mechanism that's
>> designed to point to external description resources other than
>> rationalizing the design that was already in HTML4?
> 
> * SVG graphics can have two elements, <title> and <desc>. 
> * SVG in XHTML permits elements in non-SVG namespaces, such as the 
> XHTML namespace, inside <desc> - may be John did not consider that 
> HTML5 does not allow this? Thus, in XHTML, one may even place an HTML 
> anchor element inside <desc> - to link to a description. I don't know 
> why you did not allow something like that in SVG.
> * It is even possible to have an <a> inside the <svg> - and an <a> in 
> HTML namespace around the SV. (But I guess this is just a bug in your 
> validator ... don't think HTML5 permits this, as foreign content is 
> considered interactive by HTML5)
> 
> Further more the SVG element itself belongs to another namespace - thus 
> we cannot freely add @longdesc to it. There clearly is little need for 
> @longdesc on <svg> in XML/XHTML. But, of course, HTML5 has become 
> another cup of tea. 

What should also be added is that <img>, per HTML5, takes svg 
(including as a data URI). Thus it is, finally ...  possible to add a 
@longdesc to a SVG image, in HTML5.
-- 
leif halvard silli
Received on Wednesday, 30 March 2011 15:02:03 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:17:26 GMT