John Resig schrieb:
> I think what's being driven at here is that the dataType should try
> harder to force the results into its specified type.
> 
> This can be done just by adding the line:
> if ( dataType == "xml" )
>     xml.overrideMimeType('text/xml');
> 
> This won't effect anyones existing XML-related code, instead it'll
> just help to fix a lot of the confusion that surrounds incorrect
> headers and Ajax. I say add those two lines!
> 
> --John

I still see dangers with that. IE doesn't support overrideMimeType, so 
if you don't want to leave it in the dust and want xml, you have to 
serve as text/xml anyway. Furthermore I see people trying to make it XML 
while it is HTML really and probably not well-formed. Instead of doing 
it the right way in the beginning. I'd say MIME type matters, nothing else.

Maybe I just can't imagine a situation where this is useful.


-- Klaus

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to