Forum Moderators: open

Message Too Old, No Replies

FF not displaying placeholders for images which don't load

firefox not displaying placeholders for images which don't load

         

Xapti

12:41 am on Jun 23, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I've had this problem for quite some time, and I do not know when Exactly it started to occur. I tried Mozillazine firefox support forums, and bumped it a few times, but no useful help was supplied.

Virtually any time there's an image which won't load, whether it has alt text or not, it will not show a placeholder (chisled border, with transparent center, and a little broken image icon too I think)

I've tried using image tag with a fake path on my local machine both with and without alt texts, and also I've visited a few websites where when the image is broken, it's just totally collapsed and invisible (when there's no alt text).

YES I tried long ago changing the about:config placeholder option. It does nothing!
Safe mode does not fix the problem! (safe mode disables all extensions, among other things)

I'm running FF version 1.5.0.12 right now, and winxpsp2

encyclo

2:14 am on Jun 23, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Are you seeing this when the image has the width and height set directly on the
img
element (using the
width
and
height
attributes)?

Xapti

6:42 am on Jun 27, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Doesn't seem to matter if it's set in HTML, set in CSS, or not set at all, it won't display.

piatkow

12:18 am on Jul 5, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I remember having that problem but it went away. Not sure when but it may have been fixed when I upgraded to version 2.

Achernar

12:31 pm on Jul 9, 2007 (gmt 0)

10+ Year Member Top Contributors Of The Month



I have also noticed this.
If the document has a valid doctype

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

gecko will never display placeholders for images. Even if you specify height and width attributes, the space used when an image can't be loaded is always reduced to 0 pixel width (you clearly see it if you add a css border to images), unless the IMG tag has an empty ALT attribute. If ALT is not empty, the size is also ignored and it looks like if the ALT text is an inline text.

Xapti

12:52 am on Jul 17, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Wow, that might be my problem. Why is that the case?
What versions does it affect, and why isn't it fixed?

lavazza

2:32 am on Jul 17, 2007 (gmt 0)

10+ Year Member



Maybe different for FF2... but...

In FF2 (with and without 4.01 strict dtd) it's the same or v similar

error in path/filename
+ 4.01 strict dtd
+ no alt text
+ width and height declared in html
+ css img {border:none;}
----------------
= :( no visual 'warning'
----------------

BUT

error in path/filename
+ 4.01 strict dtd
+ no alt text
+ width and height declared in html
+ css img {border: 1px solid #FF0000;}
----------------
= :) big red box at 'right' height and width
----------------

error in path/filename
+ 4.01 strict dtd
+ no alt text
+ NO width and height declared in html
+ css img {border: 1px solid #FF0000;}
----------------
= :) small red box
----------------

And anyhoo... it ain't broken... ALL images should have alt text

Achernar

4:35 pm on Jul 18, 2007 (gmt 0)

10+ Year Member Top Contributors Of The Month



If you want to use a valid DTD, you have only one choice, place an empty "alt" text and use width+height on the images that needs a placeholder.

I've never understood why alt="" is mandatory. For me, empty or none is the same. :)

RoyalSeo

4:08 pm on Jul 28, 2007 (gmt 0)

10+ Year Member



did you try reinstalling it?

if you are worried about your bookmarks etc etc being lost, just export your bookmarks.