Active
Project:
Blogger
Version:
5.x-1.4
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Jul 2008 at 04:19 UTC
Updated:
15 Jul 2008 at 08:17 UTC
On the Blogger block when Avatars are enabled, they are printed without alt tags which are necessary to validate XHTML 1.0 Strict.
For reference, the relevant code.
if (($blogger_avatar) AND ($data->picture<>"")) {
$blogger_img = base_path().$data->picture;
$showpict = "<img src='$blogger_img' "
.($blogger_avatar_width<>0 ? " width=$blogger_avatar_width " : " ")
.($blogger_avatar_height<>0 ? " height=$blogger_avatar_height " : " ")
."></>";
} else {
$showpict = "";
}
$block_content .= '<tr class="'.(($i % 2) ? 'odd' : 'even') .'">';
if ($blogger_avatar) {
$block_content .= '<td '.($blogger_avatar_width<>0 ? " width=$blogger_avatar_width " : " ").'>'.$showpict.'</td>';
}
$block_content .= '<td>'. l($showdata, "blog/$data->uid").'</td>';
$block_content .= '</tr>';
//$block_content = 'ssadsdsd 123';
}
$block_content .= '</table>';
$block_content .= '</div>';
Comments
Comment #1
icecreamyou commentedAlso, just noticed the img tag is closed incorrectly.
The tag outputs <img ... > < / >
Comment #2
MGParisi commentedAlso got this...
Does not validate!