Skip to content

Commit

Permalink
[] (0) More notes on what is a valid image.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.whatwg.org/webapps@1958 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jul 30, 2008
1 parent 8b9acbc commit f47c41c
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 15 deletions.
27 changes: 20 additions & 7 deletions index
Expand Up @@ -15434,11 +15434,17 @@ interface <dfn id=htmlimageelement>HTMLImageElement</dfn> : <a href="#htmlelemen
content</a>. content</a>.


<p>The <code title=attr-img-src><a href="#src">src</a></code> attribute <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
<p class=big-issue>Should we restrict the URL to pointing to an image? neither paged nor scripted.
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 <p>The requirements on the <code title=attr-img-alt><a
href="#alt0">alt</a></code> attribute's value are described <a href="#alt0">alt</a></code> attribute's value are described <a
Expand Down Expand Up @@ -15537,8 +15543,15 @@ interface <dfn id=htmlimageelement>HTMLImageElement</dfn> : <a href="#htmlelemen
title="">official type</var>. title="">official type</var>.


<p>User agents must not support non-image resources with the <code><a <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 href="#img">img</a></code> element (e.g. XML files whose root element is
code (e.g. scripts) embedded in the image resource. 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> <hr>


Expand Down
29 changes: 21 additions & 8 deletions source
Expand Up @@ -12980,12 +12980,17 @@ interface <dfn>HTMLImageElement</dfn> : <span>HTMLElement</span> {
<code>img</code> element's <span>fallback content</span>.</p> <code>img</code> element's <span>fallback content</span>.</p>


<p>The <code title="attr-img-src">src</code> attribute must be <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
<p class="big-issue">Should we restrict the URL to pointing to an paged nor scripted.</p>
image? What's an image? Is PDF an image? (Safari supports PDFs in
&lt;img> elements.) How about SVG? (Opera supports those). WMFs? <p class="note">Images can thus be static bitmaps (e.g. PNGs, GIFs,
XPMs? HTML?</p> 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> <p>The requirements on the <code title="attr-img-alt">alt</code>
attribute's value are described <a href="#alt">in the next attribute's value are described <a href="#alt">in the next
Expand Down Expand Up @@ -13084,8 +13089,16 @@ interface <dfn>HTMLImageElement</dfn> : <span>HTMLElement</span> {
type</var>.</p> type</var>.</p>


<p>User agents must not support non-image resources with the <p>User agents must not support non-image resources with the
<code>img</code> element. User agents must not run executable code <code>img</code> element (e.g. XML files whose root element is an
(e.g. scripts) embedded in the image resource.</p> 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> <hr>


Expand Down

0 comments on commit f47c41c

Please sign in to comment.