# \[MacOSX\] Firefox Not Diplaying Images

**URL:** <https://www.ruby-forum.com/t/macosx-firefox-not-diplaying-images/53054>\
**Category:** Rails\
**Created:** [January 24, 2006, 5:37am UTC](https://www.ruby-forum.com/t/macosx-firefox-not-diplaying-images/53054 "2006-01-24T05:37:34Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![DSAndrew\_SDaveSS\_Th](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/3da27b/32.png) [@DSAndrew\_SDaveSS\_Th](https://www.ruby-forum.com/u/DSAndrew_SDaveSS_Th)\
**Post date:** [January 24, 2006, 5:37am UTC](https://www.ruby-forum.com/t/macosx-firefox-not-diplaying-images/53054/1 "2006-01-24T05:37:34Z")

</div>

Forgive the random question, but for those of you Mac OS X users…

Does anyone else have a problem with Firefox 1.5 not displaying  
pictures/graphics embedded on web pages. Safari doesn’t seem to have a  
problem with them.

For example, my blog appears correctly in Safari, however Firefox  
drops background images.

Clues? Thanks.

–

```auto
D'Andrew "Dave" Thompson
http://dathompson.blogspot.com
```

---

<div class="post-metadata">

**Author:** ![DSAndrew\_SDaveSS\_Th](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/3da27b/32.png) [@DSAndrew\_SDaveSS\_Th](https://www.ruby-forum.com/u/DSAndrew_SDaveSS_Th)\
**Post date:** [January 24, 2006, 6:32am UTC](https://www.ruby-forum.com/t/macosx-firefox-not-diplaying-images/53054/2 "2006-01-24T06:32:26Z")

</div>

On 2006-01-23 23:36:12 -0500, “D’Andrew "Dave" Thompson”  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) said:

> Forgive the random question, but for those of you Mac OS X users…
> 
> Does anyone else have a problem with Firefox 1.5 not displaying  
> pictures/graphics embedded on web pages. Safari doesn’t seem to have a  
> problem with them.
> 
> For example, my blog appears correctly in Safari, however Firefox  
> drops background images.
> 
> Clues? Thanks.

I had a similar issue… turned out I was using a baseref tag in the

 section of my layout. Safari was ignoring this for CSS stylesheets, which appear higher in the tag, but Firefox was applying the baseref to everything, including CSS. You shouldn't use baseref anyway, but check it out to make sure :)

Ben

---

<div class="post-metadata">

**Author:** ![DSAndrew\_SDaveSS\_Th](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/3da27b/32.png) [@DSAndrew\_SDaveSS\_Th](https://www.ruby-forum.com/u/DSAndrew_SDaveSS_Th)\
**Post date:** [January 24, 2006, 9:41am UTC](https://www.ruby-forum.com/t/macosx-firefox-not-diplaying-images/53054/3 "2006-01-24T09:41:35Z")

</div>

Benoit G. wrote:

> I had a similar issue… turned out I was using a baseref tag in the
> 
> section of my layout. Safari was ignoring this for CSS stylesheets, which appear higher in the tag, but Firefox was applying the baseref to everything, including CSS. You shouldn't use baseref anyway, but check it out to make sure :)

That’s actually invalid HTML, which would explain why the browsers  
handle it differently. From the spec:

> When present, the BASE element must appear in the HEAD section of an  
> HTML document, before any element that refers to an external source.  
> The path information specified by the BASE element only affects URIs  
> in the document where the element appears.

([Links in HTML documents](http://www.w3.org/TR/html401/struct/links.html#edef-BASE))

Why do you say it shouldn’t be used?

---

<div class="post-metadata">

**Author:** ![DSAndrew\_SDaveSS\_Th](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/3da27b/32.png) [@DSAndrew\_SDaveSS\_Th](https://www.ruby-forum.com/u/DSAndrew_SDaveSS_Th)\
**Post date:** [January 24, 2006, 7:21am UTC](https://www.ruby-forum.com/t/macosx-firefox-not-diplaying-images/53054/4 "2006-01-24T07:21:57Z")

</div>

It seems that the default setting for Firefox 1.5 is to only allow the  
display of images from the originating website. Hmm, with the advent  
of Web 2.0 and the potential for many more elements to be called in  
from other locations, it would seem more reasonable to make the  
default to except them. But that’s just me.

Thanks guys. Dave

On 1/23/06, Benoit G. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > drops background images.
> 
> * * *
> 
> Rails mailing list  
> removed\_email\_address@domain.invalid  
> [http://lists.rubyonrails.org/mailman/listinfo/rails](http://lists.rubyonrails.org/mailman/listinfo/rails)

–

```auto
D'Andrew "Dave" Thompson
http://dathompson.blogspot.com
```

---

<div class="post-metadata">

**Author:** ![DSAndrew\_SDaveSS\_Th](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/3da27b/32.png) [@DSAndrew\_SDaveSS\_Th](https://www.ruby-forum.com/u/DSAndrew_SDaveSS_Th)\
**Post date:** [January 24, 2006, 1:44pm UTC](https://www.ruby-forum.com/t/macosx-firefox-not-diplaying-images/53054/5 "2006-01-24T13:44:06Z")

</div>

On 2006-01-24 03:38:34 -0500, Alex Y.  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) said:

> > When present, the BASE element must appear in the HEAD section of an  
> > HTML document, before any element that refers to an external source.  
> > The path information specified by the BASE element only affects URIs  
> > in the document where the element appears.
> 
> ([Links in HTML documents](http://www.w3.org/TR/html401/struct/links.html#edef-BASE))

I don’t remember the W3C validator catching this… maybe it doesn’t  
check the element’s position ?

> Why do you say it shouldn’t be used?

Because Rails takes care of the fancy URL rewriting for you, it will  
most certainly fail with rails helpers unless your app is really on  
“[app.server.com/](http://app.server.com/)” and not something like  
“[www.server.com/more/complicated/url](http://www.server.com/more/complicated/url)”. Even more cumbersome if the  
location of the app changes from development to production.

---

<div class="post-metadata">

**Author:** ![DSAndrew\_SDaveSS\_Th](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/3da27b/32.png) [@DSAndrew\_SDaveSS\_Th](https://www.ruby-forum.com/u/DSAndrew_SDaveSS_Th)\
**Post date:** [January 24, 2006, 1:50pm UTC](https://www.ruby-forum.com/t/macosx-firefox-not-diplaying-images/53054/6 "2006-01-24T13:50:17Z")

</div>

Benoit G. wrote:

> > ([Links in HTML documents](http://www.w3.org/TR/html401/struct/links.html#edef-BASE))
> 
> I don’t remember the W3C validator catching this… maybe it doesn’t  
> check the element’s position ?  
> Quite possibly. In any event, the validator’s not the browser or the  
> spec 🙂

> > Why do you say it shouldn’t be used?
> 
> Because Rails takes care of the fancy URL rewriting for you, it will  
> most certainly fail with rails helpers unless your app is really on  
> “[app.server.com/](http://app.server.com/)” and not something like  
> “[www.server.com/more/complicated/url](http://www.server.com/more/complicated/url)”. Even more cumbersome if the  
> location of the app changes from development to production.

Oh, I see what you mean. I thought you meant in general.

---

<div class="post-metadata">

**Author:** ![DSAndrew\_SDaveSS\_Th](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/3da27b/32.png) [@DSAndrew\_SDaveSS\_Th](https://www.ruby-forum.com/u/DSAndrew_SDaveSS_Th)\
**Post date:** [January 24, 2006, 8:22pm UTC](https://www.ruby-forum.com/t/macosx-firefox-not-diplaying-images/53054/7 "2006-01-24T20:22:21Z")

</div>

On 2006-01-24 07:52:50 -0500, Alex Y.  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) said:

> Benoit G. wrote:
> 
> > > ([Links in HTML documents](http://www.w3.org/TR/html401/struct/links.html#edef-BASE))
> > 
> > I don’t remember the W3C validator catching this… maybe it doesn’t  
> > check the element’s position ?  
> > Quite possibly. In any event, the validator’s not the browser or the spec 🙂

Nope. But it is much more enjoyable than reading W3C spec documents 🙂
