Not that big of a deal, but the Grid block outputs an extra empty "<tr></tr>" pair which makes the site not to validate.
Lines 126-131 of gallery_block.inc
if ($col >= $num_cols) {
$col = 0;
$new_html .= '</tr><tr>';
}
}
$new_html .= '</tr></table>';
As if how it's composed now you'll have to rewrite the loop for the output, it'll always out put that extra pair in the end.
I will see if I can make a patch when I have my head on straight.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | gallery_3.patch | 1.1 KB | he_who_shall_not_be_named |
Comments
Comment #1
alexmarkley commentedI noticed this problem too, as we try to maintain XHTML Strict compliance on my site.
Since I wanted to use this block, I patched it to read like so:
(starting around line 121)
All I did was make it avoid creating the last "
" when it knows it's on the last row.
Comment #2
he_who_shall_not_be_named commentedThe patch moved here from a duplicate issue. This patch is a bit cleanest.
Comment #3
kiz_0987 commentedApplied. Thanks.
Comment #4
kiz_0987 commented