Guy Macon wrote:
John Hosking wrote:
>Guy Macon wrote:
>>I already tell the browser what type of document test.css
is in my .htaccess file:
AddType 'text/css; charset=US-ASCII' .css
AddCharset US-ASCII .css
AddLanguage en-US .css
Fascinating, perhaps, but wholly unrelated to HTML validity.
I believe that it is related to HTML validity. From:
http://www.w3.org/TR/html401/present....html#h-14.2.1
|
|Authors must specify the style sheet language of style
|information associated with an HTML document.
|
|...
|
|The default style sheet language may also be set with HTTP
|headers. The above META declaration is equivalent to the
|HTTP header:
|
|Content-Style-Type: text/css
|
Okay, I see your point. I was trying to say that the HTML itself is
unaware what might be in the .htaccess file and doesn't know or care
even what headers are sent. The HMTL parser has to know the encoding of
the HTML document, but won't otherwise care about headers or Apache
configurations. The CSS file has to be locatable and readable when it
comes time to *render*, but the HTML and its parsing are separate.
But I see that the W3C doc you point to has a bit of a leak in it.
Ostensibly describing what's in an HTML document and what it means, it
starts pointing outside the document at HTTP headers (and their
lieutenants, the META declarations).
So whatever the limitations of the validator[1], if you've declared a
default style sheet language[2] via any legal method, you're in good shape.
[1] Did you say you got valid results for HTML 4.01 strict served
without the [ type="text/css" ] in the link and without the [ AddType
'text/css; .css ] in the .htaccess file? That is, without *any*
declaration of the type?
[2] 'Ts hardly a language, is it?
>
...
--
Thanks for fixing your delimiter. I had to do some work to quote your
sig. :-)
>
Microsoft Windows has detected an outdated internal organ.
The Microsoft Transplant Wizard is preparing your body
for the installation of a new kidney. Please wait...
Do you wish to make a backup copy of your existing kidney? [Y/N]
Installing kidney...10...2 0...30...40...5 0...60...70...
"ERROR 31337: Insufficient space
in abdominal cavity. Delete liver
to create additional organ space?"
[OK]
Longer, but funnier. From my experience, I'd expect that when one clicks
"OK", another dialog comes up that says
Deleting liver can cause problems and lead to system instability.
Are you sure you want to delete liver, or do you want to abort the
deletion (recommended)?
[Yes] [No] [Cancel]
--
John
My funny .sig is in the shop for maintenance.