Closed
Bug 263244
Opened 20 years ago
Closed 20 years ago
Alternate text of broken images not rendered in quirks mode
Categories
(Core :: Layout: Images, Video, and HTML Frames, defect, P2)
Core
Layout: Images, Video, and HTML Frames
Tracking
()
VERIFIED
FIXED
mozilla1.8alpha5
People
(Reporter: bugzilla, Assigned: bzbarsky)
References
Details
(Keywords: access, html4)
Attachments
(2 files, 2 obsolete files)
1.25 KB,
text/html
|
Details | |
2.70 KB,
patch
|
dbaron
:
review+
dbaron
:
superreview+
|
Details | Diff | Splinter Review |
While working on a Gecko DOM Reference file, I noticed that alternate text of broken images are not rendered if they are in table cells. In standards compliant rendering mode, Mozilla renders alt text of broken images. Since there are overwhelmingly more pages triggering quirks mode, I really think this should be corrected. Among other reasons is the fact that both Opera 7.54 and MSIE 6 SP2 will render alt text of broken images in table cells in quirks mode. I searched for duplicates and the closest I could find was comment #10 of bug 3268. No mention of such behavior at http://www.mozilla.org/docs/web-developer/quirks/quirklist.html Reproducible: always Actual results: alt text of broken images NOT rendered Expected results: alt text of broken images rendered Mozilla 1.8a5 build 2004100504 and Firefox 0.10.1 build 20041001 rv:1.7.3 under XP Pro SP2 here. A very important reduced testcase, simplified demopage is coming up. One other problem related to that testcase is that the download process (progress bar in the statusbar) seems to never stop and the icon in the tab bar never stops rotating, turning. That may actually be another bug.
Reporter | ||
Comment 1•20 years ago
|
||
MSIE 6 SP2 and Opera 7.54 will succeed in rendering that testcase, in rendering the alt text of images in table cells. There may be more than 1 bug involved in the testcase: the download progress bar (in the status bar) never stops and the animated curved arrows icon in the tab bar never stops.
Reporter | ||
Comment 2•20 years ago
|
||
Okay, the download progress issue is real (progressbar never stopping) when the file is LOCAL. The download progressbar stops within 2-3 sec. as the page loads when I try the testcase from bugzilla.mozilla.org. So, that part is not participating into this bug. Sorry about mentioning all that.
Keywords: clean-report
Reporter | ||
Comment 4•20 years ago
|
||
Bug 41924 with 200 comments is covering many issues: about size of image placeholder for alt text, if there should be a placeholder with image dimensions, how to render the text, input type="image", name attribute, <area alt="..." ...>, should there be a broken image icon or not, etc.. The problem of this bug 263244 has been clearly defined in words and in the testcase; the problem covered in this bug only exists in table cells and in quirks mode as far as I can see this. Please examine again the testcase: the alternate text of the image in the <p> is rendered while the alternate text of the images in table cells are NOT rendered. "When an image is used as the content of a link, specify a text equivalent for the image." http://www.w3.org/TR/WCAG10-HTML-TECHS/#link-text-images After reading comment #160 in that bug and http://www.w3.org/TR/UAAG10-TECHS/guidelines.html#tech-conditional-content I'm sure there is a problem. The testcase show that latest versions of Firefox (0.10.1) and Mozilla (1.8a5) will not render text equivalent of broken images in table cells. I read http://www.hixie.ch/specs/alttext and http://www.hixie.ch/advocacy/alttext and "If the IMG or INPUT element has an 'alt' attribute, then the contents of that attribute should be used as the alternate text." (Ian 'Hixie' Hickson) clearly indicates without a doubt that there is a bug here.
Comment 5•20 years ago
|
||
I do see the alt text in the testcase on both suite 1.7.3 (public) and 1.8a4 (Windows; U; Win98; en-US; rv:1.8a4) Gecko/20040927. Mozilla seems to only show the alt text after the image request fails/times out (as you would expect). I will grab a 1.8a5 later today to verify if this is a regression. (btw, please add keyword "4xp" - testcase also works on communicator4.8)
Reporter | ||
Comment 6•20 years ago
|
||
> I do see the alt text in the testcase on both suite 1.7.3 (public)
You say you see TOC PREV NEXT INDEX in the 4 cells in the testcase with 1.7.3? I
don't see TOC PREV NEXT INDEX with Firefox 0.10.1 rv:1.7.3.
Comment 7•20 years ago
|
||
Yes I do, but I have found through experimentation that this is because my profile has "browser.display.force_inline_alttext" set to TRUE (the default is FALSE). When TRUE, the alt text IS diplayed inside the table. Perhaps the default should be TRUE? Maybe that preference is not applying everywhere it should, or is applying to things it should not? Regardless, the behaviour of ALT text inside a table is different to that outside a table (with default settings), so this is still a bug.
Reporter | ||
Comment 8•20 years ago
|
||
Thanks Errol for clarifying this; I never thought there could be an user pref like force_inline_alttext.
Assignee | ||
Comment 9•20 years ago
|
||
Attachment #161319 -
Attachment is obsolete: true
Assignee | ||
Comment 10•20 years ago
|
||
Tables have nothing to do with this. The image not in a table cell didn't have a size set, and we do the quirks alt text handling only for images with a size set. Controlled experiments with actual controls are a wonderful thing. ;) I'm seeing this on current trunk.
OS: Windows XP → All
Hardware: PC → All
Summary: Alternate text of broken images in table cells are not rendered in quirks mode → Alternate text of broken images not rendered in quirks mode
Assignee | ||
Comment 11•20 years ago
|
||
Assignee | ||
Comment 12•20 years ago
|
||
Attachment #161597 -
Attachment is obsolete: true
Assignee | ||
Comment 13•20 years ago
|
||
Comment on attachment 161598 [details] [diff] [review] Patch without extra hunk The basic problem is that in this testcase the image height is smaller than the height of our placeholder... This patch just removes the code that bailed in that case, since bug 78497 is long since fixed.
Attachment #161598 -
Flags: superreview?(roc)
Attachment #161598 -
Flags: review?(roc)
Assignee | ||
Updated•20 years ago
|
Attachment #161598 -
Flags: superreview?(roc)
Attachment #161598 -
Flags: superreview?(dbaron)
Attachment #161598 -
Flags: review?(roc)
Attachment #161598 -
Flags: review?(dbaron)
Attachment #161598 -
Flags: superreview?(dbaron)
Attachment #161598 -
Flags: superreview+
Attachment #161598 -
Flags: review?(dbaron)
Attachment #161598 -
Flags: review+
Assignee | ||
Comment 14•20 years ago
|
||
This doesn't have anything to do with bug 41924 either. It's certainly not blocking it.
Assignee: jdunn → bzbarsky
No longer blocks: alttext
Severity: major → normal
Priority: -- → P2
Target Milestone: --- → mozilla1.8alpha5
Assignee | ||
Updated•20 years ago
|
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 16•20 years ago
|
||
*** Bug 269545 has been marked as a duplicate of this bug. ***
Updated•6 years ago
|
Product: Core → Core Graveyard
Updated•6 years ago
|
Product: Core Graveyard → Core
You need to log in
before you can comment on or make changes to this bug.
Description
•