Re: The interpretation of script

On 18.01.2011 00:01, Michael Champion wrote:
> Also sprach John Cowan:
>
>>   if you want something to be data, use a media type that implies it is data;
>> if you want something to be code, use a media type that implies that.
>
> Hmm,  is XSLT "code" or "data"?

Furthermore, how does this class of media type help here.

text/javascript is "code". application/json is not. I don't think we can 
depend on the type name (as opposed to type/subtype) alone.

Best regards, Julian

Received on Monday, 17 January 2011 23:12:40 UTC