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

html5/spec Overview.html,1.1148,1.1149

From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
Date: Wed, 30 Jul 2008 09:14:01 +0000
To: public-html-commits@w3.org
Message-Id: <E1KO7kv-0002HV-Gt@lionel-hutz.w3.org>

Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv8736

Modified Files:
	Overview.html 
Log Message:
More notes on what is a valid image. (whatwg r1958)

Index: Overview.html
===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.1148
retrieving revision 1.1149
diff -u -d -r1.1148 -r1.1149
--- Overview.html	30 Jul 2008 03:01:10 -0000	1.1148
+++ Overview.html	30 Jul 2008 09:13:58 -0000	1.1149
@@ -15505,11 +15505,17 @@
    content</a>.
 
   <p>The <code title=attr-img-src><a href="#src">src</a></code> attribute
-   must be present, and must contain a <a href="#valid">valid URL</a>.
+   must be present, and must contain a <a href="#valid">valid URL</a>
+   referencing a non-interactive, optionally animated, image resource that is
+   neither paged nor scripted.
 
-  <p class=big-issue>Should we restrict the URL to pointing to an image?
-   What's an image? Is PDF an image? (Safari supports PDFs in &lt;img>
-   elements.) How about SVG? (Opera supports those). WMFs? XPMs? HTML?
+  <p class=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.
 
   <p>The requirements on the <code title=attr-img-alt><a
    href="#alt0">alt</a></code> attribute's value are described <a
@@ -15608,8 +15614,15 @@
    title="">official type</var>.
 
   <p>User agents must not support non-image resources with the <code><a
-   href="#img">img</a></code> element. User agents must not run executable
-   code (e.g. scripts) embedded in the image resource.
+   href="#img">img</a></code> element (e.g. XML files whose root element is
+   an HTML element). User agents must not run executable code (e.g. scripts)
+   embedded in the image resource. User agents must only display the first
+   page of a multipage resource (e.g. a PDF file). User agents must not allow
+   the resource to act in an interactive fashion, but should honour any
+   animation in the resource.
+
+  <p>This specification does not specify which image types are to be
+   supported.
 
   <hr>
 
Received on Wednesday, 30 July 2008 09:14:36 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 9 October 2008 20:32:58 GMT