Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[] (0) Update guidance on writing alt='' text for markup generators t…
…o handle image links.

git-svn-id: http://svn.whatwg.org/webapps@2479 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Nov 29, 2008
1 parent 6ff8350 commit a392aca
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
9 changes: 7 additions & 2 deletions index
Expand Up @@ -15330,15 +15330,20 @@ href="?audio"&gt;audio&lt;/a&gt; test instead.)&lt;/p&gt;</pre>
users. However, it is recognised that in many cases, this will not
be possible.</p>

<p>For images that are the sole contents of links, markup generators
should examine the link target to determine the title of the target,
or the URL of the target, and use information obtained in this
manner as the alternative text.</p>

<p>As a last resort, implementors should either set the <code title=attr-img-alt><a href=#attr-img-alt>alt</a></code> attribute to the empty string, under
the assumption that the image is a purely decorative image that
doesn't add any information but is still specific to the surrounding
content, or omit the <code title=attr-img-alt><a href=#attr-img-alt>alt</a></code> attribute
altogther, under the assumption that the image is a key part of the
content.</p>

<p>Markup generators should generally avoid using the image's file
name as the alternative text.</p>
<p>Markup generators should generally avoid using the image's own
file name as the alternative text.</p>



Expand Down
9 changes: 7 additions & 2 deletions source
Expand Up @@ -16365,6 +16365,11 @@ href="?audio">audio&lt;/a> test instead.)&lt;/p></pre>
users. However, it is recognised that in many cases, this will not
be possible.</p>

<p>For images that are the sole contents of links, markup generators
should examine the link target to determine the title of the target,
or the URL of the target, and use information obtained in this
manner as the alternative text.</p>

<p>As a last resort, implementors should either set the <code
title="attr-img-alt">alt</code> attribute to the empty string, under
the assumption that the image is a purely decorative image that
Expand All @@ -16373,8 +16378,8 @@ href="?audio">audio&lt;/a> test instead.)&lt;/p></pre>
altogther, under the assumption that the image is a key part of the
content.</p>

<p>Markup generators should generally avoid using the image's file
name as the alternative text.</p>
<p>Markup generators should generally avoid using the image's own
file name as the alternative text.</p>



Expand Down

0 comments on commit a392aca

Please sign in to comment.