On Fri, 15 Jun 2007 12:08:06 +0200, Carsten Orthbandt <[EMAIL PROTECTED]> wrote:
If the spec clearly said "if there is no Content-Type specified, the UA should try to treat it as XML, but not raise any error conditions if parsing fails" there would be no compatibility issues and the behaviour of (compliant) XHR implementations would actually match the rules set out in the HTTP protocol. If it is actually intended to raise XML errors on untyped content this would IMHO be a important difference to the HTTP RFC.
The specification once had a concept of what is and what is not conforming for scripts to do, but it was to much of a hassle so that has been dropped. Whether or not user agents show an error message is up to them really.
-- Anne van Kesteren <http://annevankesteren.nl/> <http://www.opera.com/>