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.

CommentFileSizeAuthor
#2 span_instead_of_div.patch1.13 KBZoltán Balogh
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Anonymous’s picture

But this is invalid in XHTML, because a P section can not contains DIV elements. Please replace these DIV tags with SPAN.

Subscribing.

Zoltán Balogh’s picture

Status: Active » Needs review
FileSize
1.13 KB
davidwhthomas’s picture

Has this been tested and reviewed? If so, I can commit it.

davidwhthomas’s picture

Applied to dev release pending community review/testing.
http://drupal.org/cvs?commit=311770

davidwhthomas’s picture

Status: Needs review » Fixed

div tag replaced with span tag, uses display:block - released in 6.x.2.5 http://drupal.org/node/703262

Zoltán Balogh’s picture

Status: Fixed » Needs review

Original issue:

The Image Caption Filter modul uses the DIV tags

It is not fixed in the Image Caption Filter modul, only in Image Caption.