Re: [whatwg] An alternative approach to section 9 of Mime Sniffing

2013-05-23 Thread Anne van Kesteren
On Thu, May 23, 2013 at 2:49 PM, Peter Occil wrote: > Explain further why you don't recommend ABNF for this case. We don't recommend ABNF in general because often ABNF results in a mismatch between prescribed and actual processing. E.g. Content-Type is defined as an ABNF and technically "text/htm

Re: [whatwg] [mimesniff] An alternative approach to section 9 of Mime Sniffing

2013-05-23 Thread Peter Occil
The pattern mask DF is currently only used in the algorithm for identifying an unknown MIME type, and even here for identifying only one MIME type, namely text/html. This can be succintly covered with the following ABNF: WHITESPACE = *( %x09 / %x0A / %x0C / %x0D / %x20 ) ; any number of whit

Re: [whatwg] An alternative approach to section 9 of Mime Sniffing

2013-05-23 Thread Gordon P. Hemsley
The pattern matching algorithm is used because certain patterns require other-than-exact matching. That is why the "pattern mask" exists. This is particularly important for the "rules for identifying an unknown MIME type" (defined in 10.1), which matches ASCII characters case-insensitively; it is a

Re: [whatwg] An alternative approach to section 9 of Mime Sniffing

2013-05-23 Thread Peter Occil
Explain further why you don't recommend ABNF for this case. You should also explain whether another change to make section 9 more readable is appropriate (though it currently is relatively readable as is). --Peter -Original Message- From: Anne van Kesteren Sent: Thursday, May 23, 20

Re: [whatwg] Inert nodes and element.click()

2013-05-23 Thread Boris Zbarsky
On 5/23/13 5:48 AM, Matt Falkenhagen wrote: 1. For an inert element, what happens on element.click() or element.dispatchEvent(new Event('click'))? What would make the most sense to me is to have these work as normal but for the node to not have any default activation behavior. -Boris

[whatwg] Inert nodes and element.click()

2013-05-23 Thread Matt Falkenhagen
I have some questions about these concepts. 1. For an inert element, what happens on element.click() or element.dispatchEvent(new Event('click'))? The spec says an inert node is treated as absent "for the purposes of targeting user interaction events" [1]. My interpretation is that the element rec

Re: [whatwg] Fetch: please review!

2013-05-23 Thread Simon Pieters
On Thu, 23 May 2013 07:11:45 +0200, Anne van Kesteren wrote: On Wed, May 22, 2013 at 12:20 PM, Janusz Majnert wrote: I have a few notes to make on the use of "byte string" notion. First of all, let's look at the definition of "byte string": "A byte string is a byte sequence written down as