W3C home > Mailing lists > Public > whatwg@whatwg.org > December 2007

[whatwg] HTML5 and URI Templates

From: Geoffrey Sneddon <foolistbar@googlemail.com>
Date: Sun, 16 Dec 2007 15:21:11 +0000
Message-ID: <EC828A84-E2D6-4B36-A244-9AF814E8D0C8@googlemail.com>

On 16 Dec 2007, at 14:12, Julian Reschke wrote:

> Henri Sivonen wrote:
>> On Dec 16, 2007, at 05:28, James M Snell wrote:
>>> The gist of the idea (which I believe may have been brought up  
>>> before
>>> but I'm not certain) is to allow the use of a URI Template in  
>>> place of
>>> the form element action attribute, and to use form elements to  
>>> provide
>>> the replacement values, e.g.
>>>
>>> <form template="http://example.org{-prefix|/|foo}?bar={bar}"
>>>     method="POST">
>>> Foo: <input name="foo" type="input" >
>>> Bar: <input name="bar" type="input">
>>> </form>
>> What's the backward-compatibility story of this feature? (Both  
>> behavior of URI templates in legacy browsers and ensuring that  
>> existing content doesn't use braces.)
>
> Braces are not allowed in URIs (in case somebody forgot :-). That's  
> exactly why URI Templates can use them.

There are sites that rely on braces in URIs. You can't just go and  
change their meaning, breaking the sites, specs be damned. If RFC 3986  
defined what to do with non-conformant URIs, we wouldn't have this  
issue.


--
Geoffrey Sneddon
<http://gsnedders.com/>
Received on Sunday, 16 December 2007 07:21:11 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:59 UTC