Closed (works as designed)
Project:
Views (for Drupal 7)
Version:
7.x-3.0-rc3
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
24 Nov 2011 at 09:59 UTC
Updated:
13 Mar 2015 at 23:42 UTC
Jump to comment: Most recent
Comments
Comment #1
stborchertHi.
I think this is more a problem of your validator than of views :)
The property "typeof" comes from RDFa. If you'd like to remove this you'll have to override the function theme_image in your theme and remove it from
$variables['attributes'].Please set the status of this issue to "fixed" if this solves your validation issues.
Comment #2
DriesP commentedThanks for helping me on this one. Al though I'm gonna need a little more help as I am not well home in php.
How do I remove the 'typeoff' attribute? I can't figure it out. Thanks.
Comment #3
dawehnerIf you really want to remove it do
Comment #5
scor commentedAt the time the HTML5 validator was probably very experimental/unfinished. The typeof attribute validates now in HTML5, see results.
Comment #6
jwilson3This is also problematic for validating feeds with embedded images.
The w3c validator for feeds explicitly does not allow "typeof" attribute inside
<description>so if you have RDF module enabled, and are embedding images into your feed item descriptions, the feed does not validate, and potentially causes problems with feed readers who implement to spec.Unfortunately, out of the box with views in Drupal 7, there is no way to rewrite the img tag by hand because the image url is not one of the tokens provided in views . You can use https://www.drupal.org/project/image_url_formatter or do the heavy handed solution above implementing theme_image() in your theme, but this will affect and remove the typeof "foaf:Image" across the entire site.