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) commentedSubscribing.
Comment #2
zoltán balogh commentedComment #3
davidwhthomas commentedHas this been tested and reviewed? If so, I can commit it.
Comment #4
davidwhthomas commentedApplied to dev release pending community review/testing.
http://drupal.org/cvs?commit=311770
Comment #5
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 commentedOriginal issue:
It is not fixed in the Image Caption Filter modul, only in Image Caption.