Re: [whatwg] How to determine content-type of file: protocol

2014-08-15 Thread 段垚
于 2014/8/14 21:23, Nils Dagsson Moskopp 写道: duanyao duan...@ustc.edu writes: On 07/28/2014 22:08, Gordon P. Hemsley wrote: On 07/28/2014 08:01 AM, duanyao wrote: On 07/28/2014 06:34, Gordon P. Hemsley wrote: Sorry for the delay in responding. Your message fell through the cracks in my

Re: [whatwg] How to determine content-type of file: protocol

2014-08-14 Thread Nils Dagsson Moskopp
duanyao duan...@ustc.edu writes: On 07/28/2014 22:08, Gordon P. Hemsley wrote: On 07/28/2014 08:01 AM, duanyao wrote: On 07/28/2014 06:34, Gordon P. Hemsley wrote: Sorry for the delay in responding. Your message fell through the cracks in my e-mail filters. On 07/17/2014 08:26 AM, duanyao

Re: [whatwg] How to determine content-type of file: protocol

2014-07-31 Thread duanyao
于 2014年07月31日 02:02, Anne van Kesteren 写道: On Tue, Jul 29, 2014 at 4:26 PM, 段垚 duan...@ustc.edu wrote: 于 2014/7/29 18:48, Anne van Kesteren 写道: There's an enormous amount of tricky things to define around file URLs, this being one of them. Are there some resources on those tricky things? No,

Re: [whatwg] How to determine content-type of file: protocol

2014-07-30 Thread Anne van Kesteren
On Tue, Jul 29, 2014 at 4:26 PM, 段垚 duan...@ustc.edu wrote: 于 2014/7/29 18:48, Anne van Kesteren 写道: There's an enormous amount of tricky things to define around file URLs, this being one of them. Are there some resources on those tricky things? No, not really. But it's a short list: 1)

Re: [whatwg] How to determine content-type of file: protocol

2014-07-29 Thread Anne van Kesteren
On Thu, Jul 17, 2014 at 2:26 PM, duanyao duan...@ustc.edu wrote: I think rule 5.1 should be applied to both static fetching and XHR consistently. Browsers should set Content-Type header to local files' actual type for XHR, and interpret them accordingly. But firefox developers think this

Re: [whatwg] How to determine content-type of file: protocol

2014-07-29 Thread 段垚
于 2014/7/29 18:48, Anne van Kesteren 写道: On Thu, Jul 17, 2014 at 2:26 PM, duanyao duan...@ustc.edu wrote: I think rule 5.1 should be applied to both static fetching and XHR consistently. Browsers should set Content-Type header to local files' actual type for XHR, and interpret them

Re: [whatwg] How to determine content-type of file: protocol

2014-07-28 Thread duanyao
On 07/28/2014 06:34, Gordon P. Hemsley wrote: Sorry for the delay in responding. Your message fell through the cracks in my e-mail filters. On 07/17/2014 08:26 AM, duanyao wrote: Hi, My first question is about a rule in MIME Sniffing specification (http://mimesniff.spec.whatwg.org):

Re: [whatwg] How to determine content-type of file: protocol

2014-07-28 Thread Gordon P. Hemsley
On 07/28/2014 08:01 AM, duanyao wrote: On 07/28/2014 06:34, Gordon P. Hemsley wrote: Sorry for the delay in responding. Your message fell through the cracks in my e-mail filters. On 07/17/2014 08:26 AM, duanyao wrote: Hi, My first question is about a rule in MIME Sniffing specification

Re: [whatwg] How to determine content-type of file: protocol

2014-07-28 Thread duanyao
On 07/28/2014 22:08, Gordon P. Hemsley wrote: On 07/28/2014 08:01 AM, duanyao wrote: On 07/28/2014 06:34, Gordon P. Hemsley wrote: Sorry for the delay in responding. Your message fell through the cracks in my e-mail filters. On 07/17/2014 08:26 AM, duanyao wrote: Hi, My first question is

Re: [whatwg] How to determine content-type of file: protocol

2014-07-27 Thread Gordon P. Hemsley
Sorry for the delay in responding. Your message fell through the cracks in my e-mail filters. On 07/17/2014 08:26 AM, duanyao wrote: Hi, My first question is about a rule in MIME Sniffing specification (http://mimesniff.spec.whatwg.org): 5.1 Interpreting the resource metadata ...

[whatwg] How to determine content-type of file: protocol

2014-07-17 Thread duanyao
Hi, My first question is about a rule in MIME Sniffing specification (http://mimesniff.spec.whatwg.org): 5.1 Interpreting the resource metadata ... If the resource is retrieved directly from the file system, set supplied-type to the MIME type provided by the file system. As far