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

[whatwg] HTML5 and URI Templates

From: James M Snell <jasnell@gmail.com>
Date: Mon, 17 Dec 2007 10:13:02 -0800
Message-ID: <4766BC2E.5050303@gmail.com>
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 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 <http://example.org/?bar=input>?
> 
> Chris
> 
> 
Received on Monday, 17 December 2007 10:13:02 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:38 UTC