[Xitami] Safari and DOCTYPE
Gordon Wong
gordonw at gwinfo.net
Wed Nov 3 16:40:33 CET 2010
I am using Xitami 2.4d10 under Windows 2000 Pro and had been fighting for
months with how Chrome (only Chrome) completely ignored external css files.
But all was fine after I told Xitami yesterday that .css files were of type
text/css in defaults.cfg:
[Mime]
css=text/css
Now it does not matter what <!DOCTYPE> I use:
- HTML 4.01 strict
- HTML 4.01 transitional
- XHTML 1.0 Transitional
- even with a missing <!DOCTYPE> line the external CSS works !
My current working test site setup:
HTML 4.01 strict in pages:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
In the <head> I specified charset:
<meta http-equiv="Content-Type" content="text/html;CHARSET=iso-8859-1">
In the external CSS the matching charset specification was the first line:
@charset "iso-8859-1";
External stylesheet reference was:
<link rel="stylesheet" type="text/css" href="../css/style.css">
How is your page wacky? Can you confirm that 2.4d6 understands the new
lines in defaults.cfg ?
I will send you the link to the working page.
At 09:54 AM 2010-11-02 -0500, you wrote:
>Gordon,
>
>This did NOT work for me. I added the line in the defaults.cfg with a
>"normal" DOCTYPE and page was wacky. Tried restarting Xitami. No change.
>Tried adding line to MIME section of xitami.cfg with and without a restart -
>no difference. For me the only thing that works is using a DOCTYPE of
><!DOCTYPE>
>
>Would you mind giving me the page address that now works for you. I'd like
>to see what you have in your CSS. Thanks.
>
>Phil
>
>-----Original Message-----
>From: xitami-bounces at lists.xitami.org
>[mailto:xitami-bounces at lists.xitami.org]On Behalf Of Gordon Wong
>Sent: Tuesday, November 02, 2010 11:23 PM
>To: Xitami Users General Discussion
>Subject: Re: [Xitami] Safari and DOCTYPE
>
>
>
>Whoops - found the solution. Now Chrome works with external stylesheets.
>
>Edit defaults.cfg and add the two lines:
>
>[Mime]
> css=text/css
>
>I didn't even have to restart Xitami.
>
>- Gordon
>
>
>I said:
>I have been having unreliable results with external stylesheets with Xitami
>2.4d10 under Windows with Chrome browser.
>The same test site that fails with Chrome browser when served by Xitami
>works fine with Apache.
>I tried everything to do with DTD and @charset etc.
>Unless someone can identify why Xitami does this it's time to move on ...
>
>
>
>At 06:34 PM 2010-09-20 -0400, you wrote:
> >To Pieter (or anyone who might know)
> >
> >In searching for a solution to an issue I was having, I found a 1 Dec 2009
> >post on Wikidot which indicated that if a DOCTYPE line was present that
> >Xitami would not respect the formatting in the CSS file. I am having the
> >same issue with both Safari and Chrome. Pieter had suggested that this was
> >a "pure HTML" issue and encouraged the poster to ask the question in this
> >forum but I don't see that he ever did.
> >
> >In anyone's experience, is there a DOCTYPE that will work with Xitami
> >(V2.4d6) on Safari and Chrome? Or is there otherwise a solution?
> >
> >Thanks
> >
> >Phil
>
>
>
>
>--
>Xitami Users Mailing List -- For Xitami support
>To unsubscribe: http://lists.xitami.org/mailman/listinfo/xitami
>
>
>--
>Xitami Users Mailing List -- For Xitami support
>To unsubscribe: http://lists.xitami.org/mailman/listinfo/xitami
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xitami.org/pipermail/xitami/attachments/20101103/1e7a50f4/attachment.htm
More information about the Xitami
mailing list