I am getting an invalid XHTML error when I use the filefield in a view. I'm getting <div class="views-field-field-technote-file-fid"><span class="field-content"><div class="filefield-icon field-icon-application-pdf">... This results in an error with div nested inside a span.

According to http://drupal.org/node/369364#comment-1250483 Fields that have block elements need to set 'element type' to 'div' so that they won't get enclosed in spans. see views_handler_field::element_type()

Is FileField letting views know that it needs to be block instead of inline? If not, is there a way that I can add this?

Comments

quicksketch’s picture

Status: Active » Closed (duplicate)

I know this issue was opened first, but let's consolidate with #744948: Views: Inline another field next to the FileField-column is impossible.