Re: HTML Question: swf allowed in img src

On 2 Mar 2012, at 4:13 PM, Christian Schoebel wrote:

> Dear Sirs and Madams,
> 
> I just have a question: an external sponsor directed me to add the following line of code to my schools' homepage:
> 
> <img src="something.swf" ...>
> 
> I am sure it is not allowed to use "swf" as image sources for the image tag.
> 
> Could you please send me a link to the corresponding part of the standard where this issue is referred to? I could not find it, neither through google nor through your site.

http://www.w3.org/TR/html5/embedded-content-1.html#attr-img-src

There is a Note:

  "Images can thus be static bitmaps (e.g. PNGs, GIFs, JPEGs), single-page vector documents (single-page PDFs, XML files with an SVG root element), animated bitmaps (APNGs, animated GIFs), animated vector graphics (XML files with an SVG root element that use declarative SMIL animation), and so forth. However, this also precludes SVG files with script, multipage PDF files, interactive MNG files, HTML documents, plain text documents, and so forth."

I don't know whether this answers your question.

Ian

> 
> Yours sincerely,
> Christian Schoebel.
> 
> 
> 
> 
> 
> 
> 

--
Ian Jacobs (ij@w3.org)    http://www.w3.org/People/Jacobs/
Tel:                                      +1 718 260 9447

Received on Saturday, 3 March 2012 22:20:17 UTC