![]() | |
![]() |
| | Thread Tools | Display Modes |
#41
| |||
| |||
|
|
http://www.newmediacampaigns.com/page/browser-rest-http-accept-headers Internet Explorer 8 Accept: image/jpeg, application/x-ms-application, image/gif, application/xaml+xml, image/pjpeg, application/x-ms-xbap, application/x-shockwave-flash, application/msword, */* or if Windows has MS Office installed, then Accept: image/gif, image/jpeg, image/pjpeg, application/x-ms-application, application/vnd.ms-xpsdocument, application/xaml+xml, application/x-ms-xbap, application/x-shockwave-flash, application/x-silverlight-2-b2, application/x-silverlight, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */* However on a page refresh, IE will probably send only */* http://blogs.msdn.com/ieinternals/archive/2009/07/01/9811694.aspx |
#42
| |||
| |||
|
|
Jonathan N. Little: IE will not accept application/xhtml+xml, in which case it would get HTML. |
#43
| |||
| |||
|
|
John Dunlop wrote: I haven't read the pages dorayme pointed to, and I don't know what browser sniffing has to do with content negotiation. See the articles to understand the consequences of serving XHTMLto IE as text/html and application/xhtml+xml to others |
#44
| |||
| |||
|
|
However content negotiation also fails, as Internet Explorer is one of the browsers that claims it accepts pretty much anything. |
#45
| |||
| |||
|
|
John Dunlop wrote: No one has suggested serving XHTML to particular browsers or as text/html. I meant that one could serve XHTML as application/xhtml+xml to any browser that indicates a preference for that MIME type. But are you not? IE will not accept application/xhtml+xml, so you either have to serve it for *that* browser as text/html or present IE users with a download dialog! |
#46
| ||||
| ||||
|
|
[John Dunlop:] Jonathan N. Little: IE will not accept application/xhtml+xml, |
|
in which case it would get HTML. No, |
|
it will offer to download the file. |
|
If XHTML is served as HTML, |
#47
| |||
| |||
|
|
Jonathan N. Little: Google "tag soup" I don't see what tag soup has to do with the price of fish. |
#48
| |||
| |||
|
|
Chris F.A. Johnson: [John Dunlop:] Jonathan N. Little: IE will not accept application/xhtml+xml, Eric has now posted some Accept headers that say that Internet Explorer, at least sometimes, accepts everything, including application/xhtml+xml and treats everything with equal preference. |
|
in which case it would get HTML. No, ?? Yes, if the author wishes. it will offer to download the file. I don't know what files have to do with the World Wide Web, let alone what they have to do with content negotiation. |
#49
| |||
| |||
|
|
"Jonathan N. Little" <lws4art (AT) centralva (DOT) net> writes: John Dunlop wrote: No one has suggested serving XHTML to particular browsers or as text/html. I meant that one could serve XHTML as application/xhtml+xml to any browser that indicates a preference for that MIME type. But are you not? IE will not accept application/xhtml+xml, so you either have to serve it for *that* browser as text/html or present IE users with a download dialog! You've overlooked a third option: Serve HTML as text/html to browsers that don't grok application/xhtml+xml. |
#50
| |||
| |||
|
|
Sherm Pendley wrote: "Jonathan N. Little" <lws4art (AT) centralva (DOT) net> writes: John Dunlop wrote: No one has suggested serving XHTML to particular browsers or as text/html. I meant that one could serve XHTML as application/xhtml+xml to any browser that indicates a preference for that MIME type. But are you not? IE will not accept application/xhtml+xml, so you either have to serve it for *that* browser as text/html or present IE users with a download dialog! You've overlooked a third option: Serve HTML as text/html to browsers that don't grok application/xhtml+xml. But then you could not use the XML features of XHTML... no SVG, no MathML, ... |
![]() |
| Thread Tools | |
| Display Modes | |
| |