Forum Moderators: open

Message Too Old, No Replies

Does the new Safari suport application/xhtml+xml?

         

JAB Creations

9:00 am on Nov 11, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Does the new (or even the old) version of Safari support application/xhtml+xml? I jumped the gun a little way ahead of serverside development on some personal work to test a file with the correct mimetype. With very little adjustment I had the file render "correctly" as it did when served as text/html. Opera 7.54 and Firefox 1.5 support it, IE6 opens up notepad (nice heh).

tedster

6:31 pm on Nov 11, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Safari 1.2 -- yes, for the first time. Here's a nifty chart maintained by the W3C that shows mime type support by a whole host of browsers:

[w3.org...]

In addition, the following page at xml.com suggests an elegant way through this tangled thicket:

Mozilla, in its infinite wisdom, will tell a server that it accepts application/xhtml+xml
in the HTTP_ACCEPT header that it sends with every request. That's it. All scripting environments
provide access to these HTTP headers; so, armed with this nugget of information, we can devise
a variety of ways to serve up the same page as application/xhtml+xml to browsers that claim to
support it and as text/html to everyone else.

[xml.com...]

JAB Creations

7:04 pm on Nov 11, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks, I think I've seen that page before. Very few builds test with Safari I see (and they STILL haven't updated their build/version table since late September)!