Ah... nearly. <meta> element content-type declarations ARE used, just not when the page viewed is coming from a non-local filesystem/HTTP. So it's necessary in the sense that it enables people to save your page and for that page to be 'usable' in a more general sense (though browsers have a tendency to inject crap into saved pages: there's only so much you can do!)
On 1/16/06, Rimantas Liubertas <[EMAIL PROTECTED]> wrote: > > Gee Rimantas, > > > > Such enlightenment! > > Oh, well, OK. > > According to [1] XHTML1.1 should not be sent with MIME type of > text/html. Some may argue > that "should not" is not the same as "must not" and need to serve IE > justifies the use of "text/html" > MIME type for XHTML1.1, but I belong to "XHTML as text/html is > meaningless" camp. > > In case of application/xhtml+xml MIME type meta element makes no sense > at all, because it is not > used for anything - neither for mime type (which is never used for, be > it html or xhtml), nor for character encoding information [2]. HTTP > headers and XML declaration are used for this purpose. > > As for omitting mime type from meta element and leaving only charset > info... This might work > only in text/html context, in which such omission makes no sense. > > On the other hand charset info is optional in Content-type HTTP > header, not the content type part > itself ;) > > And you were right that was Lachlan who wrote about Content-type > headers and meta element, > see [3]. > > [1] http://www.w3.org/TR/xhtml-media-types/ > [2] http://www.mozilla.org/docs/web-developer/faq.html#xhtmldiff > [2] http://lachy.id.au/log/2006/01/content-type > > Regards, > Rimantas > -- > http://rimantas.com/ > ****************************************************** > The discussion list for http://webstandardsgroup.org/ > > See http://webstandardsgroup.org/mail/guidelines.cfm > for some hints on posting to the list & getting help > ****************************************************** > > -- Joshua Street http://www.joahua.com/ +61 (0) 425 808 469 ****************************************************** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list & getting help ******************************************************
