Re: [ietf-types] Registration for application/x-www-form-urlencoded

Mark Nottingham <mnot@mnot.net> Wed, 08 August 2012 01:17 UTC

Return-Path: <mnot@mnot.net>
X-Original-To: ietf-types@ietfa.amsl.com
Delivered-To: ietf-types@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 27A5F11E810D for <ietf-types@ietfa.amsl.com>; Tue, 7 Aug 2012 18:17:58 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -104.199
X-Spam-Level:
X-Spam-Status: No, score=-104.199 tagged_above=-999 required=5 tests=[AWL=-1.600, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zukH-gz0OOKZ for <ietf-types@ietfa.amsl.com>; Tue, 7 Aug 2012 18:17:57 -0700 (PDT)
Received: from mxout-08.mxes.net (mxout-08.mxes.net [216.86.168.183]) by ietfa.amsl.com (Postfix) with ESMTP id 580EC11E810B for <ietf-types@ietf.org>; Tue, 7 Aug 2012 18:17:57 -0700 (PDT)
Received: from [10.10.1.125] (unknown [67.79.29.132]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 583F150A5D; Tue, 7 Aug 2012 21:17:49 -0400 (EDT)
Content-Type: text/plain; charset="windows-1252"
Mime-Version: 1.0 (Mac OS X Mail 6.0 \(1485\))
From: Mark Nottingham <mnot@mnot.net>
In-Reply-To: <20120807113601.GH67292@sideshowbarker>
Date: Tue, 07 Aug 2012 20:17:49 -0500
Content-Transfer-Encoding: quoted-printable
Message-Id: <0AB1A4C6-9E6A-4CDB-AD86-383D58B7EE0B@mnot.net>
References: <20120807113601.GH67292@sideshowbarker>
To: Michael
X-Mailer: Apple Mail (2.1485)
Cc: ietf-types@ietf.org
Subject: Re: [ietf-types] Registration for application/x-www-form-urlencoded
X-BeenThere: ietf-types@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: "Media \(MIME\) type review" <ietf-types.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/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: Wed, 08 Aug 2012 01:17:58 -0000

Hi Michael,

On 07/08/2012, at 6:36 AM, Michael[tm] Smith <mike@w3.org> wrote:

> This is a request to register the application/x-www-form-urlencoded media
> type by reference to the HTML5 specification:
> 
>  http://www.w3.org/TR/html5/iana.html#application-x-www-form-urlencoded
> 
[…]
> Interoperability considerations:
>  Rules for generating and processing application/x-www-form-urlencoded
>  payloads are defined in the HTML5 specification.

HTML4 encouraged <http://www.w3.org/TR/1999/REC-html401-19991224/appendix/notes.html#h-B.2.2> the use of a semi-colon as a delimiter  in some uses of this type. AFAICT, HTML5 doesn't say anything about it.

A number of libraries (e.g., Python's urlparse.parse_qs) do treat a semicolon as a delimiter, based upon this advice. IME this has led to interop problems, as some software thinks it's data, while other software thinks it's a delimiter.

It would be good if this could be clarified; e.g., a note to the effect that semicolon is NOT a delimiter, even though it was encouraged in the past (that makes filing appropriate bugs easier).

That could be done here, or somewhere else in the HTML5 spec.

Cheers,


--
Mark Nottingham
http://www.mnot.net/