W3C home > Mailing lists > Public > site-comments@w3.org > March 2012

Re: HTML Question: swf allowed in img src

From: Ian Jacobs <ij@w3.org>
Date: Sat, 3 Mar 2012 16:20:14 -0600
Cc: site-comments@w3.org
Message-Id: <5A381935-1AFC-4BA0-ABAA-F4EDAA41B473@w3.org>
To: Christian Schoebel <scoe@brg19.at>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 24 October 2012 16:21:34 GMT