Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Because <img>
is a URL element, the itemprop must be placed in the tag itself. This requires overriding the field formatter as was done in Rich Snippets module.
There should be tests for this as well.
Comments
Comment #1
Anonymous (not verified) CreditAttribution: Anonymous commentedFixed with commit: http://drupalcode.org/project/microdata.git/commit/c10af8b