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

"Manger, James H" <James.H.Manger@team.telstra.com> Wed, 24 October 2012 06:41 UTC

Return-Path: <James.H.Manger@team.telstra.com>
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 1583621F8D28 for <ietf@ietfa.amsl.com>; Tue, 23 Oct 2012 23:41:22 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.928
X-Spam-Level:
X-Spam-Status: No, score=-0.928 tagged_above=-999 required=5 tests=[AWL=-0.027, BAYES_00=-2.599, HELO_EQ_AU=0.377, HOST_EQ_AU=0.327, RELAY_IS_203=0.994]
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 9-SKMCSF13bU for <ietf@ietfa.amsl.com>; Tue, 23 Oct 2012 23:41:21 -0700 (PDT)
Received: from ipxbvo.tcif.telstra.com.au (ipxbvo.tcif.telstra.com.au [203.35.135.204]) by ietfa.amsl.com (Postfix) with ESMTP id D26D021F8D17 for <ietf@ietf.org>; Tue, 23 Oct 2012 23:41:20 -0700 (PDT)
X-IronPort-AV: E=Sophos;i="4.80,639,1344175200"; d="scan'208";a="99840902"
Received: from unknown (HELO ipcavi.tcif.telstra.com.au) ([10.97.217.200]) by ipobvi.tcif.telstra.com.au with ESMTP; 24 Oct 2012 17:41:18 +1100
X-IronPort-AV: E=McAfee;i="5400,1158,6874"; a="139545093"
Received: from wsmsg3755.srv.dir.telstra.com ([172.49.40.196]) by ipcavi.tcif.telstra.com.au with ESMTP; 24 Oct 2012 17:41:17 +1100
Received: from WSMSG3153V.srv.dir.telstra.com ([172.49.40.159]) by WSMSG3755.srv.dir.telstra.com ([172.49.40.196]) with mapi; Wed, 24 Oct 2012 17:41:17 +1100
From: "Manger, James H" <James.H.Manger@team.telstra.com>
To: Ian Hickson <ian@hixie.ch>, David Sheets <kosmo.zb@gmail.com>
Date: Wed, 24 Oct 2012 17:41:16 +1100
Subject: RE: [whatwg] New URL Standard from Anne van Kesteren on 2012-09-24 (public-whatwg-archive@w3.org from September 2012)
Thread-Topic: [whatwg] New URL Standard from Anne van Kesteren on 2012-09-24 (public-whatwg-archive@w3.org from September 2012)
Thread-Index: Ac2xpTwYvMOy7vTuSDmxHNM3EVsdUwAAYabg
Message-ID: <255B9BB34FB7D647A506DC292726F6E114FE0A3DE8@WSMSG3153V.srv.dir.telstra.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> <CAGKvQ5ZV6_GMVgjEezhR-oKqSikxR7GYgacMitbfczmNh725mw@mail.gmail.com> <Pine.LNX.4.64.1210232348110.2471@ps20323.dreamhostps.com> <CAAWM5Tz3NdprjqwgyoVoV9qUuiwXb2gTQ49u4a4ePGfjyusDkw@mail.gmail.com> <Pine.LNX.4.64.1210240451150.2471@ps20323.dreamhostps.com>
In-Reply-To: <Pine.LNX.4.64.1210240451150.2471@ps20323.dreamhostps.com>
Accept-Language: en-US, en-AU
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
acceptlanguage: en-US, en-AU
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-Mailman-Approved-At: Wed, 24 Oct 2012 08:37:10 -0700
Cc: Ted Hardie <ted.ietf@gmail.com>, IETF Discussion <ietf@ietf.org>, Christophe Lauret <clauret@weborganic.com>, Jan Algermissen <jan.algermissen@nordsc.com>, URI <uri@w3.org>, Anne van Kesteren <annevk@annevk.nl>
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: Wed, 24 Oct 2012 06:41:22 -0000

> On Wed, 24 Oct 2012, Manger, James H wrote:
> >
> > Currently, I don't think url.spec.whatwg.org distinguishes between
> > strings that are valid URLs and strings that can be interpreted as
> > URLs by applying its standardised error handling. Consequently, error
> > handling cannot be at the option of the software developer as you
> > cannot tell which bits are error handling.

> Well first, the whole point of discussions like this is to work out
> what the specs _should_ say; if the specs were perfect then there
> wouldn't be any need for discussion.
> 
> But second, I believe it's already Anne's intention to add to the
> parsing algorithm the ability to abort whenever the URL isn't
> conforming, he just hasn't done that yet because he hasn't specced
> what's conforming in the first place.

That is good to hear. There is no hint about this in the current text/outline. There is an "invalid" flag in the current text -- but that is for strings that are so broken no error handling can resurrect a URL. There is no mention of a separate "conforming" flag, even if the rules for when to set it are yet to be fixed (though it should have been easy to say conforming=conforming-as-per-rfc3987/3987 if that was the intention).

Assuming this is Anne's intention, then 1 spec for URI/IRI/error-handling would be helpful. I'm not sure that parsing rules with conforming/non-conforming branches would be pretty, but perhaps this isn't necessary if what a conforming URL is is clear from other parts of the spec.

--
James Manger