Spartanicus wrote:Don't current Opera versions announce that they support XHTML while
> Toby Inkster wrote:
>>I would only advocate sending "Content-Type: text/html" to
>>agents that don't announce that they support XML via the
stating a preference for HTML? Shouldn't sensible content negotiation
only send XHTML in place of HTML when the UA expresses both support for
it _and_ a preference for receiving it?
> Content negotiation comes with it's own risks and issues.The notion that you can write static pages in Appendix C-style XHTML and
> We know about IE's broken accept string, and we can work
> around it. But who's to say that there aren't any other
> clients with incorrect accept values? There is the server
> overhead to consider, and the potential cache issues.
use content negotiation to decide which content-type header to send with
them really stands a very good chance of coming unstuck whenever there
is an intention to script those pages. A SCRIPT element in a static page
can only reference one URL but a browser receiving an HTML content type
will create an HTML DOM to be scripted and a browser receiving an XHTML
content-type will create an XHTML DOM to be scripted.
The single script file referenced from a static URL in the page will
Session tracking could be used; remembering which content-type was sent
And the alternative is:-
> If content negotiation is to be used at all, then it's a- in which you use an explicitly different script URL with each type of
> small step to generate HTML from the XHTML and feed that
> to clients who want HTML.
mark-up. It can be served from a cache if available with out any risk of
getting the wrong script for the DOM type being scripted, and without
requiring any additional effort to mach script requests with previous
But what has been done here? A requirement to provide essentially static
So, we can content negotiate but what is the reward for all of that
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.