Re: [Uri-review] ws: and wss: schemes

Julian Reschke <julian.reschke@gmx.de> Thu, 17 September 2009 19:57 UTC

Return-Path: <julian.reschke@gmx.de>
X-Original-To: uri-review@core3.amsl.com
Delivered-To: uri-review@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 53AE13A6985 for <uri-review@core3.amsl.com>; Thu, 17 Sep 2009 12:57:54 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.74
X-Spam-Level:
X-Spam-Status: No, score=-4.74 tagged_above=-999 required=5 tests=[AWL=-2.141, BAYES_00=-2.599]
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 e6pIXpTlOzZb for <uri-review@core3.amsl.com>; Thu, 17 Sep 2009 12:57:53 -0700 (PDT)
Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by core3.amsl.com (Postfix) with SMTP id 1A0FD3A6848 for <uri-review@ietf.org>; Thu, 17 Sep 2009 12:57:52 -0700 (PDT)
Received: (qmail invoked by alias); 17 Sep 2009 19:58:44 -0000
Received: from p508FFD1A.dip.t-dialin.net (EHLO [192.168.178.33]) [80.143.253.26] by mail.gmx.net (mp024) with SMTP; 17 Sep 2009 21:58:44 +0200
X-Authenticated: #1915285
X-Provags-ID: V01U2FsdGVkX1/OdzwCY6jOV8wiGV29Xa6bg1XBTdPu11w0dNp8R7 1RFIyEEBsk0oiW
Message-ID: <4AB294DC.305@gmx.de>
Date: Thu, 17 Sep 2009 21:58:20 +0200
From: Julian Reschke <julian.reschke@gmx.de>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.0.4) Gecko/20060516 Thunderbird/1.5.0.4 Mnenhy/0.7.4.666
MIME-Version: 1.0
To: "Roy T. Fielding" <fielding@gbiv.com>
References: <Pine.LNX.4.62.0908070531430.28566@hixie.dreamhostps.com> <1249651007.25446.8934.camel@dbooth-laptop> <0B450D619CC0486E8BD51C31FBA214AD@POCZTOWIEC> <20090812021926.GC19298@shareable.org> <AB9A0CF094F04D39BC7DC5DEAFF7FC1C@POCZTOWIEC> <4AA8A2CE.3000801@it.aoyama.ac.jp> <34660A8503164BE88641374ADF2BF1A3@POCZTOWIEC> <20090910124618.GB32178@shareable.org> <11DFA16908CB4B7D8AF0F45975DE425A@POCZTOWIEC> <20090910224151.GA17387@shareable.org> <Pine.LNX.4.62.0909170834040.14605@hixie.dreamhostps.com> <4AB205B8.9090005@gmx.de> <Pine.LNX.4.62.0909171012140.20271@hixie.dreamhostps.com> <4AB2109E.3030401@gmx.de> <69FFAAC3-CEBF-4623-85ED-C12275A89E76@gbiv.com>
In-Reply-To: <69FFAAC3-CEBF-4623-85ED-C12275A89E76@gbiv.com>
Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"
Content-Transfer-Encoding: 7bit
X-Y-GMX-Trusted: 0
X-FuHaFi: 0.63
Cc: URI <uri@w3.org>, hybi@ietf.org, Ian Hickson <ian@hixie.ch>, uri-review@ietf.org, "public-i18n-core@w3.org" <public-i18n-core@w3.org>
Subject: Re: [Uri-review] ws: and wss: schemes
X-BeenThere: uri-review@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Proposed URI Schemes <uri-review.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/uri-review>, <mailto:uri-review-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/uri-review>
List-Post: <mailto:uri-review@ietf.org>
List-Help: <mailto:uri-review-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/uri-review>, <mailto:uri-review-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 17 Sep 2009 19:57:54 -0000

Roy T. Fielding wrote:
> ...
>> Actually, unless it's ambiguous, an ABNF *does* define how to parse.
> 
> Actually, no, the purpose of an ABNF is to define the grammar for
> generating valid strings and testing strings for validity.  It might
> be used as a guide by something like lex to create a parser that
> enforces validity while parsing, but that generally is not done in
> Internet-facing software because of Postel's Law.
> ...

OK, let me rephrase that: the ABNF does not define parsing, but provides 
sufficient information for a parser that will accept and process valid 
input.

> For example, RFC 3986 has a very specific grammar for generation
> and validity of URIs, but also describes one parsing algorithm
> (not the only one, but certainly one in common use) in an
> Appendix that will accept any string and parse it into the major
> components.

Right, and I have mentioned that one more than once to those who 
complained about missing error handling in RFC 3986.

> And I'll reiterate, again, that the algorithm for reference parsing
> in HTML5 is not definitive of URLs -- it is just a variation on the
> appendix in RFC3986 that includes a non-ASCII character encoding
> step.  The entire notion that this has anything to do with IRI or URI
> definition, or that we need to fix any of the IETF specs to
> incorporate browser-specific reference error-handling, is simply
> absurd.  They are not the same thing.

Indeed.

BR, Julian