- From: Julian Aubourg <j@ubourg.net>
- Date: Mon, 6 May 2013 18:53:40 +0200
- To: Hallvord Reiar Michaelsen Steen <hallvord@opera.com>
- Cc: public-webapps WG <public-webapps@w3.org>
- Message-ID: <CANUEoevwEXK2fr3PomnPEdEJOP3_TqNzMx=fXJQQOF0uyO82oQ@mail.gmail.com>
> Aren't both "text/html;charset=windows-1252" and "text/html; charset=windows-1252" valid MIME types? Should we make the tests a bit more accepting? Reading http://www.w3.org/Protocols/rfc1341/4_Content-Type.html it's not crystal clear if spaces are accepted, although "white spaces" and "space" are clearly cited in the grammar as forbidden in tokens. My understanding is that the intent is for white spaces to be ignored but I could be wrong. Truth is the spec could use some consistency and precision. > test script sets charset=utf-8 and charset=UTF-8 on the wire is considered a failure Those tests must ignore case. "The type, subtype, and parameter names are not case sensitive." On 6 May 2013 18:31, Hallvord Reiar Michaelsen Steen <hallvord@opera.com>wrote: > Two of the tests in > http://w3c-test.org/web-platform-tests/master/XMLHttpRequest/send-content-type-string.htmfails in Firefox just because there is a space before the word "charset". > > > > Aren't both "text/html;charset=windows-1252" and "text/html; > charset=windows-1252" valid MIME types? Should we make the tests a bit more > accepting? > > > > Also, there's a test in > http://w3c-test.org/web-platform-tests/master/XMLHttpRequest/send-content-type-charset.htmthat fails in Chrome because it asserts charset must be lower case, i.e. > test script sets charset=utf-8 and charset=UTF-8 on the wire is considered > a failure. Does that make sense? > > > > -- > Hallvord R. M. Steen > Core tester, Opera Software > > > > > > >
Received on Monday, 6 May 2013 16:54:08 UTC