Skip to:

Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#1910 closed defect (bug) (fixed)

image posted in status loses its title attribute, trailing slash

Reported by: ousep's profile ousep Owned by:
Milestone: 1.2 Priority: minor
Severity: Version:
Component: Keywords:


If I post an image in my status (with attributes alt, title, height and width or any combination of the above), the title attribute gets stripped out.
In all cases, the trailing slash gets stripped as well.
My input:

<img src="" title="TITLE" alt="ALT" />

The output I get is:

<img src="" alt="ALT">

Titles work fine if links are posted.

Change History (2)

#1 @apeatling
14 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [2672]) Allow title attribute in image tags. Fixes #1910

#2 @apeatling
14 years ago

Title attributes are now allowed, but the stripping of the trailing slash is an issue with kses(). This will need to be looked at after 1.2.

Note: See TracTickets for help on using tickets.