Closed Bug 244312 Opened 22 years ago Closed 20 years ago

broken images with empty alt text render a form unsubmittable

Categories

(Core :: Layout: Images, Video, and HTML Frames, defect)

x86
Windows 2000
defect
Not set
minor

Tracking

()

RESOLVED INVALID

People

(Reporter: miken32, Unassigned)

References

()

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8a) Gecko/20040519 Firefox/0.8.0+ Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8a) Gecko/20040519 Firefox/0.8.0+ If a form has an input element of type 'image' with an empty 'alt' attribute, that element is not usable if a) the image is broken, or b) if images are disabled. It should treat an empty alt attribute the same as a missing alt attribute. See the test case for details. I'd also suggest that the default alt text be made to look a bit like a button, but that's another bug for another day. Reproducible: Always Steps to Reproduce: 1. Disable images 2. View a form with an empty alt attribute on an image button Actual Results: No way to submit the form. Expected Results: Should be treated the same as an image with a missing alt attribute.
Whiteboard: DUPEME
BTW I was hoping this wouldn't get lumped in with bug 41924 because it affects form submission, and also because that bug seems destined never to be fixed :)
Whiteboard: DUPEME
If anyone listening (who is a C programmer, unlike myself) wants to have a look at this, I think the relevant code is in nsCSSFrameConstructor::GetAlternateTextFor which is at http://lxr.mozilla.org/seamonkey/source/layout/base/nsCSSFrameConstructor.cpp#10591
This is an automated message, with ID "auto-resolve01". This bug has had no comments for a long time. Statistically, we have found that bug reports that have not been confirmed by a second user after three months are highly unlikely to be the source of a fix to the code. While your input is very important to us, our resources are limited and so we are asking for your help in focussing our efforts. If you can still reproduce this problem in the latest version of the product (see below for how to obtain a copy) or, for feature requests, if it's not present in the latest version and you still believe we should implement it, please visit the URL of this bug (given at the top of this mail) and add a comment to that effect, giving more reproduction information if you have it. If it is not a problem any longer, you need take no action. If this bug is not changed in any way in the next two weeks, it will be automatically resolved. Thank you for your help in this matter. The latest beta releases can be obtained from: Firefox: http://www.mozilla.org/projects/firefox/ Thunderbird: http://www.mozilla.org/products/thunderbird/releases/1.5beta1.html Seamonkey: http://www.mozilla.org/projects/seamonkey/
This is still broken! Reassigning to Layout:images. Maybe they can fix it?
Component: Layout: Form Controls → Layout: Images
Blocks: html4.01
Isn't this behaviour exactly what the author asked for? Setting the alt attribute to an empty string is common practice for the img element, so there's no surprise here.
No longer blocks: html4.01
Severity: normal → minor
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
W3C UA Accessibility Guidelines suggest two possible ways of dealing with this situation. One is the current behaviour, the other is my proposed behaviour. At least this should be WONTFIXed. http://www.w3.org/TR/UAAG10-TECHS/guidelines.html#tech-null-alt
Product: Core → Core Graveyard
Product: Core Graveyard → Core
You need to log in before you can comment on or make changes to this bug.