473,385 Members | 1,908 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Mozilla shows the following warning while IE doesn't show any error.

The warning message is:

Warning: The stylesheet http://www.jewelrybyponce.com/popup/popup.css
was loaded as CSS even though its MIME type, "application/octet-stream",
is not "text/css".

What cause the problem? There is not "application/octet-stream" in the
html or css code...
Jul 20 '05 #1
7 4866
nick wrote:
The warning message is:

Warning: The stylesheet http://www.jewelrybyponce.com/popup/popup.css
was loaded as CSS even though its MIME type, "application/octet-stream",
is not "text/css".

What cause the problem? There is not "application/octet-stream" in the
html or css code...


Ask your *hosting provider* to add the MIME type for css to mime.types
(if Apache) ie there should be a line:

text/css css
--
John MexIT: http://johnbokma.com/mexit/
personal page: http://johnbokma.com/
Experienced Perl programmer available: http://castleamber.com/
Happy Customers: http://castleamber.com/testimonials.html
Jul 20 '05 #2
On Mon, 14 Jun 2004 05:55:55 -0400, nick <nb***@removethis.hotmail.com>
wrote:
The warning message is:

Warning: The stylesheet http://www.jewelrybyponce.com/popup/popup.css
was loaded as CSS even though its MIME type, "application/octet-stream",
is not "text/css".

What cause the problem? There is not "application/octet-stream" in the
html or css code...

Your server is mis-serving the document. If you are on an Apache server,
add a document to your root directory named ".htaccess". In it write this:

AddType 'text/css; charset=UTF-8' .css

using the character set you are using, of course.

If it's not an Apache server, whoever runs your server must set the proper
MIME type for .css. If they are reluctant, change hosts. I'm not being
facetious here, I'm serious. There's absolutely no good reason for any
competent web host to serve .css as anything but text/css in this day and
age.
Jul 20 '05 #3
John Bokma wrote:
nick wrote:
The warning message is:

Warning: The stylesheet http://www.jewelrybyponce.com/popup/popup.css
was loaded as CSS even though its MIME type,
"application/octet-stream", is not "text/css".

What cause the problem? There is not "application/octet-stream" in the
html or css code...

Ask your *hosting provider* to add the MIME type for css to mime.types
(if Apache) ie there should be a line:

text/css css

Thanks, is there any serious problem if leave it along?
Jul 20 '05 #4
nick wrote:
John Bokma wrote:
nick wrote:
Warning: The stylesheet http://www.jewelrybyponce.com/popup/popup.css
was loaded as CSS even though its MIME type,
"application/octet-stream", is not "text/css".

In other words, it violated the standard. Well, at least it warns the
user.
text/css css
Thanks, is there any serious problem if leave it along?


Yes. The http protocol is unambiguous about this: the content type
header is definitive. If it claims application/octet-stream, then it
sure isn't text/css. A browser which conforms to the http protocol
will use the header, and since there is no stylesheet whose content
type is application/octet-stream, it will ignore the stylesheet
altogether. Mozilla in the early 1.x version (1.1, 1.2...?) did
exactly that, and I had stylesheets fail to load until the university
where I used to work fixed their mime.types file.

--
Brian (remove ".invalid" to email me)
http://www.tsmchughs.com/
Jul 20 '05 #5
Brian wrote:
nick wrote:
John Bokma wrote:
nick wrote:

Warning: The stylesheet
http://www.jewelrybyponce.com/popup/popup.css was loaded as CSS even
though its MIME type, "application/octet-stream", is not "text/css".

In other words, it violated the standard. Well, at least it warns the user.
text/css css


Thanks, is there any serious problem if leave it along?

Yes. The http protocol is unambiguous about this: the content type
header is definitive. If it claims application/octet-stream, then it
sure isn't text/css. A browser which conforms to the http protocol will
use the header, and since there is no stylesheet whose content type is
application/octet-stream, it will ignore the stylesheet altogether.
Mozilla in the early 1.x version (1.1, 1.2...?) did exactly that, and I
had stylesheets fail to load until the university where I used to work
fixed their mime.types file.

ic, however, it seems the stylesheet is working - when I am using
Mozilla 1.6...
Jul 20 '05 #6
nick wrote:
ic,
You misspelled "I see".
however, it seems the stylesheet is working - when I am using Mozilla
1.6...


It only appears to work because of Mozilla's error recovery. You cannot rely
on browser error recovery. The MIME type of your CSS stylesheet is wrong
and needs to be corrected.

--
Shawn K. Quinn
Jul 20 '05 #7
nick wrote:
Brian wrote:
nick wrote:
John Bokma wrote:

nick wrote:

> Warning: The stylesheet
> http://www.jewelrybyponce.com/popup/popup.css was loaded as CSS
> even though its MIME type, "application/octet-stream", is not
> "text/css".
is there any serious problem if leave it along?


Yes. The http protocol is unambiguous about this: the content type
header is definitive. If it claims application/octet-stream, then it
sure isn't text/css.

ic, however, it seems the stylesheet is working - when I am using
Mozilla 1.6...


It seems that Mozilla has joined Opera, which already decided to
violate the standard as IE/Win does. That way, broken sites still
"work" in the browser. As I said, earlier versions of Mozilla, and
certain Netscape releases that were based on them, do follow the
standard in this regard, and will not load a stylesheet unless its
content type is text/css.

--
Brian (remove ".invalid" to email me)
http://www.tsmchughs.com/
Jul 20 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: tony kulik | last post by:
This code works fine in ie and opera but not at all in Mozilla. Anybody got a clue as to how to get it right? <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <script...
8
by: atomo | last post by:
Hi, i got a problem with variable handling with mozilla(0.7). These lines of code works fine on IE(6), but they doesn't on Mozilla: echo" function check(){ if( ".$name.".value!=\"\" ) {...
8
by: irte | last post by:
Hi there, I made the following page using CSS (a lot of new CSS that I'd never used before): http://www-rcf.usc.edu/~mfarrell/ It shows up fine in IE, but in Mozilla the height of the "main"...
3
by: nick | last post by:
The warning message is: Warning: The stylesheet http://www.jewelrybyponce.com/popup/popup.css was loaded as CSS even though its MIME type, "application/octet-stream", is not "text/css". What...
4
by: Dmitry | last post by:
Hello, Sometimes on js code execution Mozilla 1.5 prints in JS concole the following error: "Error: fn is not defined" where "fn" is the function name surely defined _before_ the line that...
6
by: Erik Steffl | last post by:
I am trying to create a simple custom web spider using mozilla and javascript, the basic functionality is to open a website and then manipulate it using DOM (possibly opening links etc.). it...
16
by: Skc | last post by:
Just downloaded Thunderbird Newsgroup email/newsgroup reader. It's not bad - looks better and has more features than Outlook Express. Especially you can sort messages by many options. Also has...
7
by: teo | last post by:
Hallo, I'd like to debug an .aspx page from the IDE using another browser; I choose Mozilla Firefox (ver 1.8.1: 2006) Mozilla starts but the page never opens and an error occurs; a light...
3
by: jesmi | last post by:
Hello i have some code that runs nicely in internet explorer but doesn't work in mozilla. Following is my code: <A HREF="sitemap.html" onMouseOver="status='Go to Site Map'; return true;"> ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.