|
Convenient web based access to our favorite web design Usenet groups
|
 |
This is Interesting: Free Magazines for Graphics designers and webmasters
| Author |
| Thread |
 |
|
|
|
|
|
 |
 |
|
|
 |
|
|
 |
|
|
|
  07-18-04 - 05:15 PM
|
Pixel Warrior wrote:
> I have a site which looks quite nice in IE and also looks just fine
> on Mozilla Firefox (on my home machine). But when I access it from
> the server where I have uploaded it, NONE of the CSS formatting
> works.
>
> www.tased.edu.au/tasonline/vest
You're sending the css with the wrong MIME type. The server claims it
is text/html. The correct MIME type for CSS is text/css. Fix that, and
it should be fine.
> I don't think it's a Mozilla problem as such because then it
> wouldn't work on Mozilla when loading from my own machine, right?
Your own machine does not have a server, but rather file > open, where
there is no MIME type. Or else you do have a server, but it is
configured properly. The live server is not configured properly.
According to the specs, the MIME type is definitive. If the MIME type
says it's text/html, then it is text/html. NB: the ".css" on a url is
not a file extension; there are no file extensions in a url, so only
the MIME type has any meaning.
> And it can't be a server problem because then IE wouldn't work
> properly either?
MSIE breaks the interworking specs in this regard. Instead of
accepting the MIME type as definitive, it sniffs the content and tries
to second guess it. In this case, IE violates the spec and gives you
what you want, but not what the MIME type says. Mozilla does not
violate the spec in this case, and thus the results are not what you want.
--
Brian (remove ".invalid" to email me)
http://www.tsmchughs.com/
|
|
|
| [
Post Follow-Up to this message ]
|
|
|
|
|
 |
|
|
|
  07-19-04 - 12:15 AM
|
On Sun, 18 Jul 2004, Brian wrote:
> According to the specs, the MIME type is definitive. If the MIME type
> says it's text/html, then it is text/html. NB: the ".css" on a url is
> not a file extension; there are no file extensions in a url,
Right. Of course, you know and I know that it probably derives from a
filename extension on the server; but that *should* have no
significance for an HTTP *client*, as you rightly pointed out.
> so only the MIME type has any meaning.
To the client, indeed. It *might* be used on the server to deduce the
appropriate MIME type to send - the server in question here is
evidently getting it wrong.
>
> MSIE breaks the interworking specs in this regard. Instead of
> accepting the MIME type as definitive, it sniffs the content and tries
> to second guess it. In this case, IE violates the spec and gives you
> what you want, but not what the MIME type says.
Exactly.
> Mozilla does not violate the spec in this case, and thus the results
> are not what you want.
Well, I'm sorry to say that in relation to CSS files, Mozilla too
disregards this rule, *when* operating in quirks mode, and that the
disregard is deliberate, see:
http://www.mozilla.org/docs/web-dev.../quirklist.html
As you'd expect, some clue-impaired designers then "solve" their
problem by removing their DOCTYPE declaration in order to get quirks
mode...
Opera also has an option (enabled by default) to second-guess the MIME
type. One may well blame all of this misbehaviour on IE for creating
the problem in the first place, so it's hard to know just where to put
the blame.
hope this helps.
|
|
|
| [
Post Follow-Up to this message ]
|
|
|
|
|
 |
|
|
|
  07-19-04 - 12:15 AM
|
Alan J. Flavell wrote:
> On Sun, 18 Jul 2004, Brian wrote:
>
>
> To the client, indeed. It *might* be used on the server to deduce
> the appropriate MIME type to send
Of course. I opted for conciseness at the expense of being thorough.
Perhaps I made the wrong choice.
>
> Well, I'm sorry to say that in relation to CSS files, Mozilla too
> disregards this rule,
I did say "in this case." The op's server sends a MIME type for css of
"text/html". Evidently, Firefox does not "fixup" (read: second guess)
text/html to text/css. Judging from the op's test case, Firefox only
fixes up text/plain to text/css. Mind you, I've not run test cases
myself, I'm only deducing from the op and what I read from Mozilla's site.
--
Brian (remove ".invalid" to email me)
http://www.tsmchughs.com/
|
|
|
| [
Post Follow-Up to this message ]
|
|
|
|
|
 |
|
|
 |
| All times are GMT. The time now is 04:16 AM. |
 |
|
|
|
|
|  |
|