Opened 7 years ago

Closed 7 years ago

#3289 closed defect (bug) (fixed)

Inserting multiple images invalidates HTML

Reported by: marky Owned by: anonymous
Priority: normal Milestone: 2.1
Component: Administration Version: 2.0.4
Severity: normal Keywords:
Cc:

Description

I use Wordpress' image upload and management interface regularly. Recently I created a single "badge" image that I've been inserting into certain posts.

The other day, I discovered that my pages weren't validating. The problem is a non-unique ID attribute on some image tags. Wordpress automatically applies this attribute to my image tags, but if I use the same image more than once it doesn't assign a different id. So my code ends up having something like `<img src="..." id="image001" /> more than once.

Change History (1)

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

This has been fixed in trunk while fixing another bug [4408] #3261

Thanks for the report!

Note: See TracTickets for help on using tickets.