Re: [whatwg] New URL Standard from Anne van Kesteren on 2012-09-24 (public-whatwg-archive@w3.org from September 2012)

Ian Hickson <ian@hixie.ch> Tue, 23 October 2012 22:43 UTC

Return-Path: <ian@hixie.ch>
X-Original-To: ietf@ietfa.amsl.com
Delivered-To: ietf@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 37E661F0C95 for <ietf@ietfa.amsl.com>; Tue, 23 Oct 2012 15:43:24 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.522
X-Spam-Level:
X-Spam-Status: No, score=-2.522 tagged_above=-999 required=5 tests=[AWL=0.077, BAYES_00=-2.599]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Zkxr7+3BVenY for <ietf@ietfa.amsl.com>; Tue, 23 Oct 2012 15:43:23 -0700 (PDT)
Received: from homiemail-a47.g.dreamhost.com (caibbdcaaaaf.dreamhost.com [208.113.200.5]) by ietfa.amsl.com (Postfix) with ESMTP id 725E81F0C3A for <ietf@ietf.org>; Tue, 23 Oct 2012 15:43:23 -0700 (PDT)
Received: from homiemail-a47.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a47.g.dreamhost.com (Postfix) with ESMTP id 8958B28406E; Tue, 23 Oct 2012 15:43:23 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=hixie.ch; h=date:from:to :cc:subject:in-reply-to:message-id:references:mime-version: content-type; s=hixie.ch; bh=KFoahIh+HE7Xu3u7HFWOAQD5iDc=; b=1yD MtIzZDtS2N9r+AXZj3IDFyEBYYfzgFdaiNz+USv5xia39BL/T2dJkfoO9nX+fqWh oRvgqONy8MsKXuZRElHQ+P3FYRNrjia+3qULvYRMWUEg/TVI+tyWXT7vvAtMnn5l CayNEnz0JL3y7i56f1NBNx0as4ttRMKUUQXxRsyI=
Received: from ps20323.dreamhostps.com (ps20323.dreamhost.com [69.163.222.251]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: internal@index.hixie.ch) by homiemail-a47.g.dreamhost.com (Postfix) with ESMTPSA id 6A58B28405C; Tue, 23 Oct 2012 15:43:23 -0700 (PDT)
Date: Tue, 23 Oct 2012 22:43:22 +0000
From: Ian Hickson <ian@hixie.ch>
To: Jan Algermissen <jan.algermissen@nordsc.com>
Subject: Re: [whatwg] New URL Standard from Anne van Kesteren on 2012-09-24 (public-whatwg-archive@w3.org from September 2012)
In-Reply-To: <15E1D98B-8883-4936-81A9-174E1323683C@nordsc.com>
Message-ID: <Pine.LNX.4.64.1210232234590.2471@ps20323.dreamhostps.com>
References: <50604C1A.7090901@gmx.de> <5060A964.5060001@stpeter.im> <Pine.LNX.4.64.1210172354500.2478@ps20323.dreamhostps.com> <507F5A7E.6040206@arcanedomain.com> <50856E3C.103@gmail.com> <Pine.LNX.4.64.1210221753010.2471@ps20323.dreamhostps.com> <0DBC8A11-319C-4120-975E-7E40FD5818BF@gbiv.com> <Pine.LNX.4.64.1210222137530.2471@ps20323.dreamhostps.com> <CA+9kkMDpEZCvcG1DJd=O1qPNV+=+GTBeN+CGndUe51Xym_A9sg@mail.gmail.com> <Pine.LNX.4.64.1210232115210.2471@ps20323.dreamhostps.com> <15E1D98B-8883-4936-81A9-174E1323683C@nordsc.com>
Content-Language: en-GB-hixie
Content-Style-Type: text/css
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset="US-ASCII"
X-Mailman-Approved-At: Wed, 24 Oct 2012 08:37:10 -0700
Cc: Ted Hardie <ted.ietf@gmail.com>, URI <uri@w3.org>, IETF Discussion <ietf@ietf.org>
X-BeenThere: ietf@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: IETF-Discussion <ietf.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ietf>, <mailto:ietf-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/ietf>
List-Post: <mailto:ietf@ietf.org>
List-Help: <mailto:ietf-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ietf>, <mailto:ietf-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 23 Oct 2012 22:43:24 -0000

On Tue, 23 Oct 2012, Jan Algermissen wrote:
> On Oct 23, 2012, at 11:34 PM, Ian Hickson <ian@hixie.ch> wrote:
> >
> > Let's in fact try: Hi guys, we need to fix STD 66 because it doesn't 
> > define error handling.
> 
> Help me, I am just not getting it:
> 
> Why do you insist on 'fixing STD 66'?
> 
> What is the reason you are not willing to reframe the problem to 'fixing 
> how we get from the provided string -the input to the reference 
> construction process- to a STD-66-valid result'?

Because that's not a good way to write specs. Implementors shouldn't have 
to read three separate specs to implement one algorithm. The definition 
for Base64 isn't spread into tree separate RFCs. You don't put the HTML 
parser in a different spec than the HTML elements.

A spec for this kind of thing should define the following:

 - The conformance requirements for authors so that they can use the 
   technology in a manner that avoids likely pitfalls

 - A processing model for each relevant implementation conformance class 
   (software) that defines how you take the input and use it

In the case of these string, that means, to a first approximation:

 - A definition of what the valid syntax of these strings is.

 - A definition of how you get from one of these strings, whether valid or 
   not, to the information you need to process it, in particular, for 
   e.g. strings that reference specific files:
    - the scheme (what protocol you're going to be using)
    - the hostname and port of the remote host
    - the path and query string to pass to that host
    - the fragment identifier

So there should just be one spec, not three (IRIs, URIs, and the error 
handling).

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'