Skip to content

Commit

Permalink
[] (0) Another (probably vain) attempt at defining what an <img> elem…
Browse files Browse the repository at this point in the history
…ent represents in all cases.

git-svn-id: http://svn.whatwg.org/webapps@1960 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jul 30, 2008
1 parent 609e0f5 commit 2650fb8
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 17 deletions.
19 changes: 11 additions & 8 deletions index
Expand Up @@ -15518,22 +15518,29 @@ interface <dfn id=htmlimageelement>HTMLImageElement</dfn> : <a href="#htmlelemen

<hr>

<p>The element represents the image specified by the <code
title=attr-img-src><a href="#src">src</a></code> attribute.

<p>When the <code title=attr-img-alt><a href="#alt0">alt</a></code>
attribute is present and its value is the empty string, the image
supplements the surrounding content. In such cases, the image may be
omitted in the rendering without affecting the meaning of the document.
omitted in the rendering without affecting the meaning of the document. If
the image is not available, then the element represents nothing.

<p>When the <code title=attr-img-alt><a href="#alt0">alt</a></code>
attribute is present and its value is not the empty string, the image is a
graphical equivalent of the string given in the <code
title=attr-img-alt><a href="#alt0">alt</a></code> attribute. In such
cases, the image may be replaced in the rendering by the string given in
the attribute without significantly affecting the meaning of the document.
If the image is not available, then the element represents that string
instead.

<p>When the <code title=attr-img-alt><a href="#alt0">alt</a></code>
attribute is missing, the image represents a key part of the content.
Non-visual user agents should apply image analysis heuristics to help the
user make sense of the image.
user make sense of the image. If the image is not available, the element
represents some indication that the image is missing.

<p>The <code title=attr-img-alt><a href="#alt0">alt</a></code> attribute
does not represent advisory information. User agents must not present the
Expand All @@ -15546,12 +15553,8 @@ interface <dfn id=htmlimageelement>HTMLImageElement</dfn> : <a href="#htmlelemen
<code title=attr-img-alt><a href="#alt0">alt</a></code> attribute, if any,
or nothing, if that attribute is empty or absent.

<p>When the <code title=attr-img-src><a href="#src">src</a></code>
attribute is present, the element represents the image given by that
attribute.

<p>The contents of <code><a href="#img">img</a></code> elements, if any,
are ignored for the purposes of rendering.
<p>The <em>contents</em> of <code><a href="#img">img</a></code> elements,
if any, are ignored for the purposes of rendering.

<hr>

Expand Down
20 changes: 11 additions & 9 deletions source
Expand Up @@ -13064,23 +13064,29 @@ interface <dfn>HTMLImageElement</dfn> : <span>HTMLElement</span> {

<hr>

<p>The element represents the image specified by the <code
title="attr-img-src">src</code> attribute.</p>

<p>When the <code title="attr-img-alt">alt</code> attribute is
present and its value is the empty string, the image supplements the
surrounding content. In such cases, the image may be omitted in the
rendering without affecting the meaning of the document.</p>
rendering without affecting the meaning of the document. If the
image is not available, then the element represents nothing.</p>

<p>When the <code title="attr-img-alt">alt</code> attribute is
present and its value is not the empty string, the image is a
graphical equivalent of the string given in the <code
title="attr-img-alt">alt</code> attribute. In such cases, the image
may be replaced in the rendering by the string given in the
attribute without significantly affecting the meaning of the
document.</p>
document. If the image is not available, then the element represents
that string instead.</p>

<p>When the <code title="attr-img-alt">alt</code> attribute is
missing, the image represents a key part of the content. Non-visual
user agents should apply image analysis heuristics to help the user
make sense of the image.</p>
make sense of the image. If the image is not available, the element
represents some indication that the image is missing.</p>

<p>The <code title="attr-img-alt">alt</code> attribute does not
represent advisory information. User agents must not present the
Expand All @@ -13093,12 +13099,8 @@ interface <dfn>HTMLImageElement</dfn> : <span>HTMLElement</span> {
element's <code title="attr-img-alt">alt</code> attribute, if any,
or nothing, if that attribute is empty or absent.</p>

<p>When the <code title="attr-img-src">src</code> attribute is
present, the element represents the image given by that
attribute.</p>

<p>The contents of <code>img</code> elements, if any, are ignored
for the purposes of rendering.</p>
<p>The <em>contents</em> of <code>img</code> elements, if any, are
ignored for the purposes of rendering.</p>

<hr>

Expand Down

0 comments on commit 2650fb8

Please sign in to comment.