The img tag for the technorati hourglass has no alt text - which is mandatory for XHTML.
<!ATTLIST img
%attrs;
src %URI; #REQUIRED
alt %Text; #REQUIRED
longdesc %URI; #IMPLIED
height %Length; #IMPLIED
width %Length; #IMPLIED
usemap %URI; #IMPLIED
ismap (ismap) #IMPLIED
>
Attached a small patch against 6.x branch that sets the alt text to the same as the following prefix text.
| Comment | File | Size | Author |
|---|---|---|---|
| add_alt_text.patch | 789 bytes | chrissearle |
Comments
Comment #1
kbahey commentedCommitted. Thank you.
P.S. Please use the new code style for . (concatenate) in future patches, or use the coder module for checking the style.
Comment #2
chrissearle commentedI thought I had. For the latest dev download coder is saying:
Coder says that there should be a space between . and non-strings (like the call to t()) but no space between . and static strings.
If I change to
$output .= '<img alt="'. t('Technorati Tags:') .'" src="'. $path .'"/>';taken from the patch then coder stops complaining.
This is with coder 6.x-1.0 - I haven't tried the 6.x-2.x branch - perhaps that is different?
Comment #3
kbahey commentedI am probably confusing Drupal 7.x coding standards (space on both sides) and Drupal 6.x (just one side).
Thanks either way, and keep the patches coming.
Comment #4
chrissearle commentedAh - that may be the case :) Haven't looked at d7 yet (still getting everything up to 6).
Comment #5
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.