[html5] r1958 - [] (0) More notes on what is a valid image.
whatwg at whatwg.org
whatwg at whatwg.org
Wed Jul 30 02:13:54 PDT 2008
Author: ianh
Date: 2008-07-30 02:13:53 -0700 (Wed, 30 Jul 2008)
New Revision: 1958
Modified:
index
source
Log:
[] (0) More notes on what is a valid image.
Modified: index
===================================================================
--- index 2008-07-30 03:01:05 UTC (rev 1957)
+++ index 2008-07-30 09:13:53 UTC (rev 1958)
@@ -15434,11 +15434,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 <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
@@ -15537,9 +15543,16 @@
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>
<p>The <code title=attr-hyperlink-usemap><a
Modified: source
===================================================================
--- source 2008-07-30 03:01:05 UTC (rev 1957)
+++ source 2008-07-30 09:13:53 UTC (rev 1958)
@@ -12980,12 +12980,17 @@
<code>img</code> element's <span>fallback content</span>.</p>
<p>The <code title="attr-img-src">src</code> attribute must be
- present, and must contain a <span>valid URL</span>.</p>
+ present, and must contain a <span>valid URL</span> referencing a
+ non-interactive, optionally animated, image resource that is neither
+ paged nor scripted.</p>
- <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
- <img> elements.) How about SVG? (Opera supports those). WMFs?
- XPMs? HTML?</p>
+ <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>
<p>The requirements on the <code title="attr-img-alt">alt</code>
attribute's value are described <a href="#alt">in the next
@@ -13084,9 +13089,17 @@
type</var>.</p>
<p>User agents must not support non-image resources with the
- <code>img</code> element. User agents must not run executable code
- (e.g. scripts) embedded in the image resource.</p>
+ <code>img</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>
+ <p>This specification does not specify which image types are to be
+ supported.</p>
+
<hr>
<p>The <code title="attr-hyperlink-usemap">usemap</code> attribute,
More information about the Commit-Watchers
mailing list