|
Posted by cwdjrxyz@yahoo.com on 11/13/98 11:26
Toby Inkster wrote:
> Leif K-Brooks wrote:
>
> > Your script will serve application/xhtml+xml to a browser with an Accept
> > header of "text/html,application/xhtml+xml;q=0.1', which is completely
> > broken behavior.
>
> This function implements somewhat more thorough HTTP Accept checking:
> http://message-id.net/pan.2005.01.19.21.29.39.174830@tobyinkster.co.uk
>
> --
> Toby A Inkster BSc (Hons) ARCS
> Contact Me ~ http://tobyinkster.co.uk/contact
You will find dozens of discussions of this subject on the web. Some
are very elaborate. Some are simple. Some work only for xhtml 1.0. I
tried many approaches. If you get elaborate with using q, many of these
approaches will connect you to serve html rather than the desired true
xhtml 1.1. My desire was to force using true xhtml with mime type
application/xhtml+xml for any browser that reports it can use it at
all. In such a case you have to be careful to check major browsers that
can use true xhtml to see if they have any bugs when using it. I found
only a few minor bugs that are easily corrected for pages of interest
to me. This I decided the most simple method met my needs. I started
out by writing two pages of the type something.xhtml and
something.html. My server is set to deliver .xhtml with the mime type
application/xhtml+xml. It is set in the usual way for the .html
extension to deliver text/html. You can connect to a short redirect
page that will allow you to select either the something.xhtml or
something.html page. Most of the modern browsers can use either, but
IE6 is the exception that can not use the something.xhtml page.
Although I have plenty of storage on the server for near-duplicate
pages, I find that I do not have to use this method for any browser of
interest to me. However, if I ever have a problem, there are several
things you can fall back on such as duplicate pages, selection of a
range of q allowed, etc.
The IE7 browser is in early beta test by some selected software people.
Of course there is plenty of discussion about this on the web. You
never know what to believe. However one report I read suggested that
IE7 still will not support application/xhtml+xml. If so, this is very
disturbing. However someone could just be attempting to stir up
trouble. However there are reports that several of the IE6 CSS bugs
will be fixed in the IE7. Time will tell.
Navigation:
[Reply to this message]
|