[whatwg] HTML5 and URI Templates

James M Snell jasnell at gmail.com
Mon Dec 17 10:13:02 PST 2007


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
> 
> 



More information about the whatwg mailing list