Skip to:
Content

BuddyPress.org

Opened 15 years ago

Closed 15 years ago

Last modified 15 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:
Cc:

Description

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="http://buddypress.org/wp-content/themes/buddypress.org/images/about-screens/profile.gif" title="TITLE" alt="ALT" />

The output I get is:

<img src="http://buddypress.org/wp-content/themes/buddypress.org/images/about-screens/profile.gif" alt="ALT">

Titles work fine if links are posted.

Change History (2)

#1 @apeatling
15 years ago

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

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

#2 @apeatling
15 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.