Re: [whatwg] HTML5 and URI Templates

2008-12-02 Thread Ian Hickson
On Sat, 1 Nov 2008, Erik Wilde wrote: The benefit would be having more control over the construction of the URI rather than just the query parameters. I could have a form with two simple fields a and b and specify http://test.org/customers/{a}/reports/{b}; as the action URI.

[whatwg] HTML5 and URI Templates

2008-11-01 Thread Ian Hickson
(In the interests of avoiding cross-posting, I have only sent this e-mail to the whatwg list. The original e-mails were also crossposted to the IETF URI list and the rest-discuss list.) This might be a good time to bring the FAQ to people's attention -- it covers what we ask people to go

Re: [whatwg] HTML5 and URI Templates

2007-12-21 Thread James M Snell
FYI... I've put together a quick prototype example [1] of a html form using a URI Template [2]. The processing of the template is performed in the onsubmit event of the form. - James [1] http://www.snellspace.com/wp/?p=832 [2] http://www.snellspace.com/wp/?p=831 Ian Hickson wrote: On Mon, 17

Re: [whatwg] HTML5 and URI Templates

2007-12-17 Thread Julian Reschke
Maciej Stachowiak wrote: Oh well. Are you really believing this? RFC2396 and RFC3986 define what a URI is. They do not and don't need to say anything about things which aren't URIs. It's been well known for some time that the URI and IRI RFCs do not correctly or sufficiently describe the

Re: [whatwg] HTML5 and URI Templates

2007-12-17 Thread Simon Pieters
On Mon, 17 Dec 2007 12:16:17 +0100, Julian Reschke [EMAIL PROTECTED] wrote: For the record: I totally disagree. It's not the job of the URI and IRI RFCs to describe how a user agent has to handle things that do not conform to the RFC3986/3987 syntax. Why not? The HTML4 WG had this

Re: [whatwg] HTML5 and URI Templates

2007-12-17 Thread Krzysztof Żelechowski
Dnia 15-12-2007, So o godzinie 19:28 -0800, James M Snell pisze: form template=http://example.org{-prefix|/|foo}?bar={bar} method=POST Foo: input name=foo type=input Bar: input name=bar type=input /form Why is this prefix operator needed here? What is wrong with the URL

Re: [whatwg] HTML5 and URI Templates

2007-12-17 Thread James M Snell
It's just an example. Here's another: form template=http://www.google.com/search?{-join||q,num} method=GET input name=q type=text / input name=num type=range step=1 min=5 max=100 value=5 / /form - James Krzysztof Żelechowski wrote: Dnia 15-12-2007, So o godzinie 19:28 -0800, James M

Re: [whatwg] HTML5 and URI Templates

2007-12-17 Thread James M Snell
If a legacy browser comes across form template=... /, it would be no different than if it came across a form element with no action attribute; which means it would have the same impact as the html5 choice to allow the accept attribute. It should be possible for us to also do something like:

Re: [whatwg] HTML5 and URI Templates

2007-12-17 Thread Ian Hickson
On Mon, 17 Dec 2007, Julian Reschke wrote: The HTML4 WG had this position about HTML as well. This position is what makes interoperability suffer, browser vendors having to spend lots of resources reverse engineering each other, and the resulting de facto error handling being

Re: [whatwg] HTML5 and URI Templates

2007-12-17 Thread Philip Taylor
On 17/12/2007, James M Snell [EMAIL PROTECTED] wrote: It should be possible for us to also do something like: form action=http://example.org/form_processor; template=http://example.org?{-join||a,b} method=POST input name=a type=text / input name=b type=text /

Re: [whatwg] HTML5 and URI Templates

2007-12-16 Thread Henri Sivonen
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

Re: [whatwg] HTML5 and URI Templates

2007-12-16 Thread Philip Taylor
On 16/12/2007, Henri Sivonen [EMAIL PROTECTED] wrote: On Dec 16, 2007, at 05:28, James M Snell wrote: 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

Re: [whatwg] HTML5 and URI Templates

2007-12-16 Thread Julian Reschke
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

Re: [whatwg] HTML5 and URI Templates

2007-12-16 Thread Geoffrey Sneddon
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

Re: [whatwg] HTML5 and URI Templates

2007-12-16 Thread Henri Sivonen
On Dec 16, 2007, at 14:21, Philip Taylor wrote: But the original example had form template which would avoid that conflict. Oops. I missed that. Would the processing model be that the template attribute overrides the action attribute in template-aware UAs leaving it to the page author

Re: [whatwg] HTML5 and URI Templates

2007-12-16 Thread Julian Reschke
Geoffrey Sneddon 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

Re: [whatwg] HTML5 and URI Templates

2007-12-16 Thread James M Snell
Right. We avoid the issue by using a different attribute for the template. - James Julian Reschke wrote: [snip] That being said -- James suggested template instead of action anyway. BR, Julian

Re: [whatwg] HTML5 and URI Templates

2007-12-16 Thread Maciej Stachowiak
On Dec 16, 2007, at 7:36 AM, Julian Reschke wrote: Geoffrey Sneddon wrote: 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. Oh well. Are you really believing this? RFC2396 and RFC3986

[whatwg] HTML5 and URI Templates

2007-12-15 Thread James M Snell
While I am certain some folks may not appreciate the departure from the engaging and entertaining debate over video codecs, I wanted to offer a minor feature suggestion [1] with regards to HTML5 forms and URI Templates [2]. The gist of the idea (which I believe may have been brought up before but