Skip to content

Commit

Permalink
[ac] (0) Define <area alt> authoring conformance criteria.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.whatwg.org/webapps@1932 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jul 24, 2008
1 parent b31b160 commit d031bd1
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 13 deletions.
28 changes: 19 additions & 9 deletions index
Expand Up @@ -22803,15 +22803,25 @@ function AddCloud(data, x, y) { ... }</pre>
<p>If the <code><a href="#area">area</a></code> element has an <code
title=attr-hyperlink-href><a href="#href6">href</a></code> attribute, then
the <code><a href="#area">area</a></code> element represents a <a
href="#hyperlinks">hyperlink</a>; the <dfn id=alt1
title=attr-area-alt><code>alt</code></dfn> attribute, which must then be
present, specifies the text.

<p>However, if the <code><a href="#area">area</a></code> element has no
<code title=attr-hyperlink-href><a href="#href6">href</a></code>
attribute, then the area represented by the element cannot be selected,
and the <code title=attr-area-alt><a href="#alt1">alt</a></code> attribute
must be omitted.
href="#hyperlinks">hyperlink</a>. In this case, the <dfn id=alt1
title=attr-area-alt><code>alt</code></dfn> attribute must be present. It
specifies the text of the hyperlink. Its value must be text that, when
presented with the texts specified for the other hyperlinks of the <a
href="#image2">image map</a>, and with the alternative text of the image,
but without the image itself, provides the user with the same kind of
choice as the hyperlink would when used without its text but with its
shape applied to the image. The <code title=attr-area-alt><a
href="#alt1">alt</a></code> attribute may be left blank if there is
another <code>area<code> element in the same <a href="#image2">image
map</a> that points to the same resource and has a non-blank <code
title=attr-area-alt><a href="#alt1">alt</a></code>
attribute.</code></code>

<p>If the <code><a href="#area">area</a></code> element has no <code
title=attr-hyperlink-href><a href="#href6">href</a></code> attribute, then
the area represented by the element cannot be selected, and the <code
title=attr-area-alt><a href="#alt1">alt</a></code> attribute must be
omitted.

<p>In both cases, the <code title=attr-area-shape><a
href="#shape">shape</a></code> and <code title=attr-area-coords><a
Expand Down
18 changes: 14 additions & 4 deletions source
Expand Up @@ -20115,11 +20115,21 @@ function AddCloud(data, x, y) { ... }</pre>

<p>If the <code>area</code> element has an <code
title="attr-hyperlink-href">href</code> attribute, then the
<code>area</code> element represents a <span>hyperlink</span>; the
<dfn title="attr-area-alt"><code>alt</code></dfn> attribute, which
must then be present, specifies the text.</p>
<code>area</code> element represents a <span>hyperlink</span>. In
this case, the <dfn title="attr-area-alt"><code>alt</code></dfn>
attribute must be present. It specifies the text of the
hyperlink. Its value must be text that, when presented with the
texts specified for the other hyperlinks of the <span>image
map</span>, and with the alternative text of the image, but without
the image itself, provides the user with the same kind of choice as
the hyperlink would when used without its text but with its shape
applied to the image. The <code title="attr-area-alt">alt</code>
attribute may be left blank if there is another <code>area<code>
element in the same <span>image map</span> that points to the same
resource and has a non-blank <code title="attr-area-alt">alt</code>
attribute.</p>

<p>However, if the <code>area</code> element has no <code
<p>If the <code>area</code> element has no <code
title="attr-hyperlink-href">href</code> attribute, then the area
represented by the element cannot be selected, and the <code
title="attr-area-alt">alt</code> attribute must be omitted.</p>
Expand Down

0 comments on commit d031bd1

Please sign in to comment.