Closed Bug 65206 Opened 24 years ago Closed 24 years ago

alt text gets surrounded by setting border="1" on img tags!

Categories

(Core :: Layout: Tables, defect)

x86
Windows NT
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 11011

People

(Reporter: bugs4hj, Assigned: buster)

Details

Attachments

(2 files)

WinNT4/Mozilla build 2001011104

Reproducable   : always
Current result : border surrounding alt text
Expected result: no border set on alt text, but on the table cell

Steps to reproduce:
-------------------
1 - go to preferences and block images
2 - use the link of the attached testcase
3 - and take a look at the alt text

Both IE and Opera don't have this problem, would be nice if Mozilla can do the same.
1 - should read us table with missing image
At start the table builds up the right way. But then some code tells it to
redraw with the alt text, and then the layout is wrong.
I can reproduce this by image blocking in preferences AND with broken images!
Something did go wrong with copy paste, sorry for that.
This has nothing to do with tables but with block handling, reassigning to
buster, I think this is a dupe of bug 55046.
Assignee: karnaze → buster
First of all this bug is about the border around the alt text. There should NOT
be a border around the alt text at all in those examples. Can that be fixed with
a place holder for images?
cc hixie
Technically this is not a bug -- the image element has been told to have a 
border when it is a link, and the style rule in question doesn't worry about 
whether or not the image was actually loaded or not.

(Jesse: Thanks again for cc'ing me)

*** This bug has been marked as a duplicate of 11011 ***
Status: UNCONFIRMED → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
That might be so Ian, but A: it makes a hell of a mess of table layout and B: I
can't find a W3C statement that the ALT text should inherit the border of broken
images!
A: so don't break your images. :-P If you are relying on a particular layout
you are doomed anyway -- any user can set a personal stylesheet which changes 
page layout, or they could change fonts, or colours, or anything.

B: It doesn't 'inherit' it. The IMG element is still there, it's just that 
instead of being shown as an image it is shown as text. Since the applicable
style rule doesn't care about that and just sets the border on the IMG element,
the border appears regardless of the state of the image.
Then I can only say I love the way IE and Opera are doing this kind of work.
Well, except for their leaving of the box, I agree. The 'alt' attribute is
an *alternative* representation -- it's not a title or something.

Don't worry, we'll fix this!!!
QA contact update
QA Contact: chrisd → amar
Verified dup.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: