[whatwg] HTML5 and URI Templates

On 16/12/2007, Henri Sivonen <hsivonen at iki.fi> 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 story of this feature? (Both
> behavior of URI templates in legacy browsers and ensuring that
> existing content doesn't use braces.)

Out of ~15K random pages from dmoz.org, I see two with braces in <form action>:

http://www.bornsvilkar.dk/ - <form name="mainform" method="post"
action="BV.Main.BV.Browse.aspx?path=%2fwww_bornsvilkar_dk%2fbornsvilkar&amp;layout={0685D858-53CA-4F7E-A3C8-53D1BD7F277D}"
id="mainform">

http://bip.wokiss.pl/margoninm/ - <FORM
ACTION='index.php?pid=2&&opcje=a:1:{i:0;s:6:"wyszuk";}' METHOD='POST'
ENCTYPE='multipart/form-data' name="wyszukiwarka" style="margin:0px;"
>

But the original example had <form template> which would avoid that
conflict. (The only template attributes I see are one page with
<widget template> and one with <edittag:edit template>.)

-- 
Philip Taylor
excors at gmail.com

Received on Sunday, 16 December 2007 04:21:57 UTC