W3C home > Mailing lists > Public > public-html@w3.org > January 2008

Re: img issue: should we restrict the URI

From: Guillaume Ludwig <contact@gmli.fr>
Date: Thu, 24 Jan 2008 23:18:42 +0100
To: HTML WG <public-html@w3.org>
Message-Id: <200801242318.43224.contact@gmli.fr>

Jeff Schiller, wrote:

> http://www.w3.org/TR/html5/#the-img has an issue highlighted:  "Should
> we restrict the URI to pointing to an image? What's an image? Is PDF
> an image? (Safari supports PDFs in <img>  elements.) How about SVG?
> (Opera supports those). WMFs? XPMs? HTML?"
>
> My belief is that we should not restrict the URI or specify the format.
>
> Would the following text be sufficient?
>
>     "If the UA understands how to treat the resource as an image, then
> this is sufficient for the UA to render it, otherwise the alt text
> shall be used."
>
> Of course the problem with this is: what does "treat the resource as
> an image" mean?  This leads to the root question in the issue "What's
> an image?".

Maybe we can use the mime-type to determine if the src attribute content is 
correct ?


Guillaume




-- 
Guillaume LUDWIG - GMLi
    
Received on Friday, 25 January 2008 02:28:48 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 29 October 2015 10:15:29 UTC