[apps-discuss] Terminology and scope of [UI]Rx-like objects (was Re: What does it mean? (Re: Scope of RFC3986 and successor - what is a URI?))

ht@inf.ed.ac.uk (Henry S. Thompson) Fri, 16 January 2015 11:50 UTC

Return-Path: <ht@inf.ed.ac.uk>
X-Original-To: apps-discuss@ietfa.amsl.com
Delivered-To: apps-discuss@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id DD1081ACD81 for <apps-discuss@ietfa.amsl.com>; Fri, 16 Jan 2015 03:50:18 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.211
X-Spam-Level:
X-Spam-Status: No, score=-4.211 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Wf7gj6oc-ssv for <apps-discuss@ietfa.amsl.com>; Fri, 16 Jan 2015 03:50:15 -0800 (PST)
Received: from treacle.ucs.ed.ac.uk (treacle.ucs.ed.ac.uk [129.215.16.102]) by ietfa.amsl.com (Postfix) with ESMTP id 6CED31ACD6E for <apps-discuss@ietf.org>; Fri, 16 Jan 2015 03:50:15 -0800 (PST)
Received: from crunchie.inf.ed.ac.uk (crunchie.inf.ed.ac.uk [129.215.33.180]) by treacle.ucs.ed.ac.uk (8.13.8/8.13.4) with ESMTP id t0GBo9pu029460; Fri, 16 Jan 2015 11:50:09 GMT
Received: from troutbeck.inf.ed.ac.uk (troutbeck.inf.ed.ac.uk [129.215.25.32]) by crunchie.inf.ed.ac.uk (8.14.4/8.14.4) with ESMTP id t0GBo8Jl021334; Fri, 16 Jan 2015 11:50:08 GMT
Received: from troutbeck.inf.ed.ac.uk (localhost [127.0.0.1]) by troutbeck.inf.ed.ac.uk (8.14.4/8.14.4) with ESMTP id t0GBo8bs018718; Fri, 16 Jan 2015 11:50:08 GMT
Received: (from ht@localhost) by troutbeck.inf.ed.ac.uk (8.14.4/8.14.4/Submit) id t0GBo7UP018714; Fri, 16 Jan 2015 11:50:07 GMT
X-Authentication-Warning: troutbeck.inf.ed.ac.uk: ht set sender to ht@inf.ed.ac.uk using -f
To: Larry Masinter <masinter@adobe.com>
References: <54B18B61.8010308@seantek.com> <54B19435.8070401@intertwingly.net> <54B1B211.3050807@seantek.com> <54B1B682.3070609@intertwingly.net> <012001d02d91$6ec42300$4001a8c0@gateway.2wire.net> <54B2781C.4040505@intertwingly.net> <018e01d02dc6$1d03b0a0$4001a8c0@gateway.2wire.net> <54B2CC75.5080900@intertwingly.net> <54B79930.3070009@ninebynine.org> <54B7AEC2.9010109@intertwingly.net> <20150116033032.GD2350@localhost> <DM2PR0201MB096082B3915B85F60EDB617DC34F0@DM2PR0201MB0960.namprd02.prod.outlook.com>
From: ht@inf.ed.ac.uk
Date: Fri, 16 Jan 2015 11:50:07 +0000
In-Reply-To: <DM2PR0201MB096082B3915B85F60EDB617DC34F0@DM2PR0201MB0960.namprd02.prod.outlook.com> (Larry Masinter's message of "Fri\, 16 Jan 2015 07\:38\:36 +0000")
Message-ID: <f5b1tmvgd1s.fsf_-_@troutbeck.inf.ed.ac.uk>
User-Agent: Gnus/5.101 (Gnus v5.10.10) XEmacs/21.5-b33 (linux)
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
X-Edinburgh-Scanned: at treacle.ucs.ed.ac.uk with MIMEDefang 2.60, Sophie, Sophos Anti-Virus, Clam AntiVirus
X-Scanned-By: MIMEDefang 2.60 on 129.215.16.102
Archived-At: <http://mailarchive.ietf.org/arch/msg/apps-discuss/PdE0kufeHQTchyc-CGn5g7SSw2M>
Cc: "apps-discuss@ietf.org" <apps-discuss@ietf.org>
Subject: [apps-discuss] Terminology and scope of [UI]Rx-like objects (was Re: What does it mean? (Re: Scope of RFC3986 and successor - what is a URI?))
X-BeenThere: apps-discuss@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: General discussion of application-layer protocols <apps-discuss.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/apps-discuss>, <mailto:apps-discuss-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/apps-discuss/>
List-Post: <mailto:apps-discuss@ietf.org>
List-Help: <mailto:apps-discuss-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/apps-discuss>, <mailto:apps-discuss-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 16 Jan 2015 11:50:19 -0000

I'm worried we've got unnecessarily confused and/or antagonistic
because we're not carefully distinguishing names and contexts of use.

Context of use is crucial, if I understand the history and the
requirements behind the IETF specifications correctly.

3986 defines a low-level protocol element (hereafer 'I_URI'), for use
in protocols such as HTTP.  I_URIs are restricted to ASCII, and have a
relatively conservative syntax intended to make the first-order
(scheme-independent) parsing of I_URIs easy.  It is _not_ a
specification designed primarily for human authoring or reading.

In consequence, over time, a number of alternative attempts to specify
more human-friendly presentation forms for I_URIs have arisen.  IRIs
can be seen as such a form, although 3987 [1] is less than completely
clear about this.  This aspect of 3987 is made explicit:

  "IRIs can serve as presentation elements for URI protocol elements.
   An example would be an address bar in a Web user agent." [2]

But IRIs extend I_URIs in a relatively conservative way, focussed on
(to put it informally) allowing a wider range of alphabets where
I_URIs allowed only ASCII alphabetics.  For this reason IRIs might
reasonably be criticised as not really satisfying a requirement for
congenial human use.  In particular (see earlier part of this thread),
3987 did _not_ change the 'reserved' production of 3986, or add '[' or
']' to the 'iquery' production.  Nor does it allow space characters or
most punctuation characters.

The first example I'm aware of, of a specification which actually
addresses the presentation form question, is "Legacy Extended IRIs for
XML resource identification" [3], which arose from the recognition that
the XML specification [4], and subsequently the XML Schema
specification [5], did _not_ constrain the contents of language
elements used for identification of web resources to I_URI or IRI
syntax.  LEIRIs added space and a number of ASCII punctuation and UCS
non-alphabetic ranges into the 'iunreserved' production.

The WHATWG URL specification [6] is essentially targetted at the
parallel problem for browsers and HTML -- what people type in the
'address' bar, or put in 'href' or 'src' attributes, has never been
restricted in practice to I_URI syntax.  The HTML 4.01 spec [7]
already recommends error recovery behaviour for non-ASCII strings in
href attributes.

It is thus it seems to me entirely reasonable for the HTML5
specification (for which I'm happy to view [6] as a proposed
revision/additional constituent) to define a high-level protocol
element, call it W_URL, for use in browsers and HTML language
elements.

The key thing, it seems to me, is to recognise that as such the W_URL
is not an alternative to, but rather a presentation form for, IRIs or
I_URIs, with its own (obviously related) syntax, and interoperably-
defined error recovery mechanisms.

It _also_ seems entirely reasonable to me, from the perspective of the
_low_-level protocols concerned, to be extremely cautious about any
changes to I_URI syntax.

I think the only changes needed are

  1) For Sam Ruby to re-interpret the _functionality_ which needs to
     be specified wrt W_URLs as including the mapping _from_ W_URLs
     _to_ I_URIs (possibly via a mapping to IRIs, possibly not);

  2) For the IETF to entertain minor revisions to 3986 or 3987 if
     that's required to make (1) easy to achieve.

ht

[1] http://tools.ietf.org/html/rfc3987
[2] http://tools.ietf.org/html/rfc3987#section-3
[3] http://www.w3.org/TR/leiri/
[4] http://www.w3.org/TR/xml/
[5] http://www.w3.org/TR/xmlschema11-1/
[6] https://url.spec.whatwg.org/
[7] http://www.w3.org/TR/html401/appendix/notes.html#non-ascii-chars
-- 
       Henry S. Thompson, School of Informatics, University of Edinburgh
      10 Crichton Street, Edinburgh EH8 9AB, SCOTLAND -- (44) 131 650-4440
                Fax: (44) 131 650-4587, e-mail: ht@inf.ed.ac.uk
                       URL: http://www.ltg.ed.ac.uk/~ht/
 [mail from me _always_ has a .sig like this -- mail without it is forged spam]