[html5] r2479 - [] (0) Update guidance on writing alt='' text for markup generators to handle im [...]
whatwg at whatwg.org
whatwg at whatwg.org
Sat Nov 29 15:00:19 PST 2008
Author: ianh
Date: 2008-11-29 15:00:18 -0800 (Sat, 29 Nov 2008)
New Revision: 2479
Modified:
index
source
Log:
[] (0) Update guidance on writing alt='' text for markup generators to handle image links.
Modified: index
===================================================================
--- index 2008-11-29 22:57:14 UTC (rev 2478)
+++ index 2008-11-29 23:00:18 UTC (rev 2479)
@@ -15330,6 +15330,11 @@
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
@@ -15337,8 +15342,8 @@
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>
Modified: source
===================================================================
--- source 2008-11-29 22:57:14 UTC (rev 2478)
+++ source 2008-11-29 23:00:18 UTC (rev 2479)
@@ -16365,6 +16365,11 @@
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
@@ -16373,8 +16378,8 @@
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>
More information about the Commit-Watchers
mailing list