|
Posted by Leif K-Brooks on 09/10/05 14:27
cwdjrxyz@yahoo.com wrote:
> You will notice a php include at the top of the code. This include
> file may be seen at http://www.cwdjr.net/calendar2/mime.txt . I am
> now serving many new pages in true xhtml 1.1 using the correct mime
> type of application/xhtml+xml for the extension .xhtml on the server.
> What the include code does is to detect if the viewing browser will
> accept the mentioned mime type.
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. Opera, one example of a browser with such an Accept
header, will fail to handle HTML entity references in
application/xhtml+xml documents.
> I have added an alert to pop up if a browser that will not support
> application/xhtml+xml is detected and the viewer has script turned
> on. This is my protest of the lack of standards compliance of IE6,
> which is the main current browser that will not support true xhtml
> 1.1.
So you're punishing your visitors, many of whom may have no choice in
browser, for Microsoft's behavior? If I were forced to use IE (like I
was for a month last year) and received an annoying popup every time I
viewed a page on your site, you would lose a visitor.
[Back to original message]
|