Closed Bug 341685 Opened 18 years ago Closed 18 years ago

Images displayed outside of a document have bad alt text

Categories

(Core :: General, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 177747

People

(Reporter: robin, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.9a1) Gecko/20060602 Minefield/3.0a1
Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.9a1) Gecko/20060602 Minefield/3.0a1

If you load an image directly (i.e. outside a document) and go context menu / Properties you'll see that the alt text given is "The image “x” cannot be displayed, because it contains errors.". This isn't the most helpful for consumers of this information (most importantly screen readers). Obviously we can't tell what's in the image, but we should present what information we can in-case it's what was wanted. E.g.:

"This image has the filename logo.gif, is 276 pixels wide by 110 pixels tall and is a GIF"

If the image really is broken then maybe we can redirect to another page or programmatically write a proper error message.

Reproducible: Always

Steps to Reproduce:
1. Load an image directly
2. Right click on it and go to Properties
3. Note the contents of the alt attribute

Actual Results:  
Unhelpful alt text

Expected Results:  
Helpful alt text

*** This bug has been marked as a duplicate of 177747 ***
Status: UNCONFIRMED → RESOLVED
Closed: 18 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.