#3100 closed defect (bug) (fixed)
Images shouldn't have alt attributes of filenames
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 2.3 | Priority: | normal |
Severity: | normal | Version: | 2.0.4 |
Component: | Administration | Keywords: | has-patch commit dev-feedback |
Focuses: | Cc: |
Description
When you upload a photo, and don't give it a title, it gets a title of the filename.
Then when you insert the picture into the editor, if gives the picture an alt attribute withthe file name.
Under no circumstances should default behavior give alt attributes of filenames, so we should avoid this.
Attachments (1)
Change History (21)
#2
@
18 years ago
- Milestone changed from 2.0.4 to 2.1
- Version changed from 2.1 to 2.0.4
Damn. That should be the other way around. :)
#4
follow-up:
↓ 5
@
18 years ago
- Owner changed from skeltoac to cpoteet
- Status changed from new to assigned
#5
in reply to:
↑ 4
@
18 years ago
What do you think should be replaced instead of the filename? alt="" isn't a much better option.
#6
@
18 years ago
Blank is better than something that's not actually alt text:
http://diveintoaccessibility.org/day_21_ignoring_spacer_images.html
#7
@
18 years ago
Amazon's Mechanical Turk to the rescue! :-)
But seriously... if we don't have data in the form of a manually specified title, the best thing we can do is use alt=""
#9
@
18 years ago
- Resolution set to fixed
- Status changed from assigned to closed
It's not pretty, but it's better than the alt tags with no semantic value.
#10
@
18 years ago
- Keywords has-patch added; needs-patch removed
- Resolution fixed deleted
- Status changed from closed to reopened
cpoteet: Welcome to the WordPress Trac, but just FYI we don't close the ticket as "fixed" until it's committed into the trunk.
#13
@
18 years ago
- Milestone changed from 2.3 to 2.2
- Priority changed from normal to high
- Severity changed from normal to major
#14
@
18 years ago
- Milestone changed from 2.2 to 2.3
- Priority changed from high to normal
- Severity changed from major to normal
It's hardly essential, so bumping to 2.3. Only essential bugfixes are going in 2.2 as of this point.
#15
@
18 years ago
I actually think the file name is a good default, provided it's stripped from the extension. Now, what would be AWESOME is if clicking on the attachment name made the name into a text box, that onBlur renamed the file using AJAX or something like it. Thus, the usability problem of taking the file name as the attachment title (and corresponding alt attribute) becomes a minor annoyance.
#16
@
18 years ago
The filename, even without the extension, should never be used for the alt tag.
A filename is bound by the limitations of the filesystem, therefore people often replace spaces with underscores or use CamelCase. I don't know if you've ever listened to a screenreader trying to pronounce that. It's just plain ugly.
I'd rather see empty alt attributes than filenames (with or without extension). Although making a meaningfull alt attribute mandatory would get a +100 from me.
(Anecdote: A blind friend of mine showed me a site which was read to us by his screenreader. During the reading it said "spacer.gif" over 50 times before even reaching the actual content on that page. Every time you mention the word spacer.gif in his vicinity nowadays he starts to twitch ;) )
Any suggestions on what should be in the alt attribute? Or do we leave it empty?