Closed
Bug 125983
Opened 23 years ago
Closed 22 years ago
alt text of images with no SRC attribute is not visible without height/width
Categories
(Core :: Layout, defect, P3)
Core
Layout
Tracking
()
RESOLVED
FIXED
Future
People
(Reporter: BenB, Unassigned)
References
Details
(Keywords: access, testcase)
Attachments
(1 file)
(deleted),
text/html
|
Details |
Load the following HTML in your browser:
<a href="foobar"><img alt="This text should appear, so you know there was an
image and what it was supposed to mean"></a>
Expected result:
All alt text is readable.
Actual result:
You see a small dot instead of the image.
Reporter | ||
Comment 1•23 years ago
|
||
I consider this being dataloss in the rendering.
Comment 5•23 years ago
|
||
When did this break!?! I know this worked when I changed the quirks-mode
handling of alt text - I tested the heck out of it then.
Can anyone try to narrow down the date of regression?
Status: NEW → ASSIGNED
Keywords: nsbeta1+
Comment 6•23 years ago
|
||
I am seeing this on an image with width and height. The HTML code used is:
<p style="margin-top: 0px; margin-bottom: 5px;"><img src="/images/title.gif"
width="450" height="93" alt="LemNet.com Logo" style="margin-top: 0px;
padding-top: 0px; border: 0px;"></p>
and you can see it online at http://www.lemnet.blinksworld.com/ (it is the logo
in the very top left)
Comment 7•23 years ago
|
||
Is this a dupe of 62046?
"ALT text of <img> element isn't displayed when "Do not load any images" in
Preferences is checked.
It is displayed if the <img> element has HEIGHT and WIDTH attributes."
I have images disabled, but the image in question has width and height attributes.
WIN 98, build 2002021915
The cause of this seems to be the lack of src="somethign". What I am seeing::
<p><img alt="alt text"></p> displays nothing.
<p><img src="" alt="alt text"></p> displays nothing.
<p><img src="broken_link.jpg" alt="alt text"></p> displays the text.
<p><img width="100" height="100" alt="alt text"></p> displays the text.
Tim.
Comment 11•23 years ago
|
||
Images missing the mandatory src attribute have never shown the alt text...
that's a long standing bug. (Well, I guess it's a bug. Hard to say, since it's
invalid and thus not covered by the specs.)
Keywords: regression
Reporter | ||
Comment 12•23 years ago
|
||
> Images missing the mandatory src attribute
The testcase does have a src attribute (so it's a legal document), just that
it's empty.
Comment 13•23 years ago
|
||
Ok, that's a slightly more serious bug. I guess it means use the current page as
the image? Or something?
Still, that has never worked, so it's not a regression.
Comment 14•23 years ago
|
||
Sorry, this is not a big problem. IMG with no SRC attribute, or an empty SRC
attribute, will not cause alt text to be displayed. If width and height are
specified, then the alt text will be displayed.
In general usage, the src attribute on the IMG is specified, so this is more or
less academic.
clearing nsbeta1+ and moving to future.
Reporter | ||
Comment 15•23 years ago
|
||
> this is more or less academic.
No, it is not academic with bug 108153, where I remove the source attibute to
guard against bug 28327.
Comment 16•23 years ago
|
||
nsbeta1- based on comment #14
Comment 17•22 years ago
|
||
I'm not sure if this is the same bug, but the alternate text for images very
rarely shows up in a tooltip, and I can't pinpoint exactly which images show the
alternate text and which don't. For example, load <http://www.aripollak.com>.
That big "aripollak.com" graphic on top is assigned ALT="aripollak.com".
However, that text shows up neither in a tooltip or in the image properties. The
banner ad below the title, however, shows the alternate text in both a tooltip
and the image properties.
I have seen other pages which have linked images with alternate text, but the
text never shows up.
Reporter | ||
Comment 18•22 years ago
|
||
No, it is not the same bug, in fact no bug at all, but a FAQ.
Comment 19•22 years ago
|
||
Ari, what you're looking for is title="...", that's what you've got in your
source for the banner. alt="..." only is the alternative text which gets shown
when the image isn't loaded. The title is what get's displayed as tooltip.
Comment 20•22 years ago
|
||
It is the only bug I found regarding my problem...
I have a home page (http://cgi-bin.spaceports.com/~species6) which does not
display any alt=...
here an example:
<img src="../pics/homep_0.gif" name="Handy Shopper" alt="Home page"
border="0" height="40" width="36">
when moving the mouse cursor over the picture, I expect to see the alt=. it
works fine under NetScape 4.75.
is it not supported by Mozilla 1.1, or does I have some faulty settings in my
browser?
Reporter | ||
Comment 21•22 years ago
|
||
Jam, please see the comment right above yours. This is FAQ, search on the net.
Comment 22•22 years ago
|
||
On Mozilla 1.0.1, Linux. I don't see ALT text for quirks pages with
image loading disabled. Is that this bug getting worse, or a different
bug? To see what I mean, disable image loading and go to...
http://open-beos.sourceforge.net/news.php
Why is there no alt text shown for the left side menu? Instead there seem to be
tiny invisible place holders.
If I've found the wrong bug please point me to the right one. All the other ones
I looked in were full of users asking for ALT tooltips or moon cheese or whatever.
Comment 23•22 years ago
|
||
Re: comment 22
This issue is bug 180620.
Comment 24•22 years ago
|
||
-> Layout again
Comment 25•22 years ago
|
||
Bug 83774 fixed this.
You need to log in
before you can comment on or make changes to this bug.
Description
•