Re: [ietf-types] The application/www-form-urlencoded format

"Anne van Kesteren" <annevk@opera.com> Sun, 26 September 2010 20:40 UTC

Return-Path: <annevk@opera.com>
X-Original-To: ietf-types@core3.amsl.com
Delivered-To: ietf-types@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id AC8DE3A6BA5 for <ietf-types@core3.amsl.com>; Sun, 26 Sep 2010 13:40:25 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.413
X-Spam-Level:
X-Spam-Status: No, score=-6.413 tagged_above=-999 required=5 tests=[AWL=-0.414, BAYES_00=-2.599, J_CHICKENPOX_14=0.6, RCVD_IN_DNSWL_MED=-4]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HDRQGUyIfNqb for <ietf-types@core3.amsl.com>; Sun, 26 Sep 2010 13:40:24 -0700 (PDT)
Received: from pechora4.lax.icann.org (pechora4.icann.org [IPv6:2620:0:2d0:1::39]) by core3.amsl.com (Postfix) with ESMTP id E58563A6ADF for <ietf-types@ietf.org>; Sun, 26 Sep 2010 13:40:23 -0700 (PDT)
Received: from smtp.opera.com (smtp.opera.com [213.236.208.81]) by pechora4.lax.icann.org (8.13.8/8.13.8) with ESMTP id o8QKedJw021138 for <ietf-types@iana.org>; Sun, 26 Sep 2010 13:41:00 -0700
Received: from anne-van-kesterens-macbook-pro.local (pat-tdc.opera.com [213.236.208.22]) (authenticated bits=0) by smtp.opera.com (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o8QKebhK009135 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sun, 26 Sep 2010 20:40:38 GMT
Content-Type: text/plain; charset="utf-8"; format="flowed"; delsp="yes"
To: Bjoern Hoehrmann <derhoermi@gmx.net>
References: <k1os96p03o78p78490hei104biadpiepit@hive.bjoern.hoehrmann.de> <op.vjmuz10364w2qv@anne-van-kesterens-macbook-pro.local> <679v96hgl3jqatro4epeqlneqoms020uhe@hive.bjoern.hoehrmann.de>
Date: Sun, 26 Sep 2010 22:40:37 +0200
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Anne van Kesteren <annevk@opera.com>
Organization: Opera Software
Message-ID: <op.vjnqdzm664w2qv@anne-van-kesterens-macbook-pro.local>
In-Reply-To: <679v96hgl3jqatro4epeqlneqoms020uhe@hive.bjoern.hoehrmann.de>
User-Agent: Opera Mail/10.62 (MacIntel)
X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.0 (pechora4.lax.icann.org [208.77.188.39]); Sun, 26 Sep 2010 13:41:00 -0700 (PDT)
Cc: ietf-types@iana.org
Subject: Re: [ietf-types] The application/www-form-urlencoded format
X-BeenThere: ietf-types@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "Media \(MIME\) type review" <ietf-types.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/ietf-types>, <mailto:ietf-types-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/ietf-types>
List-Post: <mailto:ietf-types@ietf.org>
List-Help: <mailto:ietf-types-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ietf-types>, <mailto:ietf-types-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sun, 26 Sep 2010 20:40:26 -0000

On Sun, 26 Sep 2010 22:19:40 +0200, Bjoern Hoehrmann <derhoermi@gmx.net>  
wrote:
> * Anne van Kesteren wrote:
>> I think it is unfortunate it still allows encoding in various ways. So
>> while things could be more readable as you pointed out in the past user
>> agents are still allowed to obscure most everything.
>
> I do think that encoder implementers can make reasonable choices about
> that. If an implementer decides it's best to escape, say, the zero-width
> space character because it's invisible then I see nothing wrong with
> that. If another implementer decides to not escape it, that's fine too.

I suppose. And I guess if we ever decide to implement any of this we could  
make more specific requirements in the forms section of HTML for that  
class of implementors.

After having thought about it some more I am doubting this would be a very  
useful addition though. The benefit over application/x-www-form-urlencoded  
seems marginal. Not high enough to warrant the cost.


>> The bug about + seems to be still be there. Escapes are first decoded  
>> and
>> then + is replaced with U+0020. Also application/x-www-form-urlencoded  
>> is
>> on its way of being standardized as part of HTML5 now.
>
> I don't think there is anything that "HTML5" could standardize about it,
> other than define how form submission using that type should be imple-
> mented in HTML implementations. As for the +, the text refers to the ab-
> stract syntax tree you get when parsing a string using the grammar, so
> an escaped plus sign is no instance of `plus`. I take it that's one of
> the text's rough edges I should smooth out.

I guess. I'm not very good at reading grammar / prose combinations. (I  
thought that after the escape was handled you would have instances of  
plus.)


>> Most other such formats ignore a leading U+FEFF.
>
> I can't think of any format that's always UTF-8 encoded yet allows for
> it, but anyway, treating it as part of a name is simpler than ignoring
> it, I think people are more likely to implement that correctly than if
> I were to require recognizing it.

text/event-stream and text/cache-manifest.


-- 
Anne van Kesteren
http://annevankesteren.nl/