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.
The Image Caption Filter modul uses the DIV tags for „filtering” images. The Drupal following this structure:
<p>Some text <img class="image-left" src=..../> some text.</p>
When this modul filter the image, inserts DIV tags, like this:
<p>Some text <div class="image-left" ><img src=..../><div class="caption">caption</div></div> some text </p>
But this is invalid in XHTML, because a P section can not contains DIV elements. Please replace these DIV tags with SPAN.
Comment | File | Size | Author |
---|---|---|---|
#2 | span_instead_of_div.patch | 1.13 KB | Zoltán Balogh |
Comments
Comment #1
Anonymous (not verified) CreditAttribution: Anonymous commentedSubscribing.
Comment #2
Zoltán Balogh CreditAttribution: Zoltán Balogh commentedComment #3
davidwhthomas CreditAttribution: davidwhthomas commentedHas this been tested and reviewed? If so, I can commit it.
Comment #4
davidwhthomas CreditAttribution: davidwhthomas commentedApplied to dev release pending community review/testing.
http://drupal.org/cvs?commit=311770
Comment #5
davidwhthomas CreditAttribution: davidwhthomas commenteddiv tag replaced with span tag, uses display:block - released in 6.x.2.5 http://drupal.org/node/703262
Comment #6
Zoltán Balogh CreditAttribution: Zoltán Balogh commentedOriginal issue:
It is not fixed in the Image Caption Filter modul, only in Image Caption.