Drupal Views Module and XHTML valid links
This isn't the first time that the Views Module has spit out invalid code. It's not a huge issue, but I've seen Views spit out div blocks without a close tag, just causing me all kinds of headaches in IE.
Anyhow, the Views module (currently 6.x-2.6) puts an alt attribute in links, which is not XHTML compliant. Not a drop dead issue, but regardless, defeats a XHTML validation.
According to this thread, a fix is in the works for Views 6.x-3.0. Until then there is a patch...or one could go to views_handler_field.inc, line 501 and comment out:
$options['attributes']['alt'] = $alt;
It's a hack, sure, but it will work in a pinch.
- john's blog
- Login to post comments
