summaryrefslogtreecommitdiff
path: root/tests/html5_forms.ur
blob: 507ea3cfc36c45864b6d9edff3a8505a1f83d972 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
fun handler r = return <xml><body>
  A: {[r.A]}<br/>
  B: {[r.B]}<br/>
  C: {[r.C]}<br/>
  D: {[r.D]}<br/>
  E: {[r.E]}<br/>
  F: {[r.F]}<br/>
  G: {[r.G]}<br/>
  H: {[r.H]}<br/>
  I: {[r.I]}<br/>
  J: {[r.J]}<br/>
  K: {[r.K]}<br/>
  L: {[r.L]}<br/>
  M: {[r.M]}<br/>
  N: {[r.N]}<br/>
  O: {[r.O]}<br/>
  P: {[r.P]}<br/>
</body></xml>

fun main () =
    return <xml><body>
      <form>
        <textbox{#A} required placeholder="bobby"/>
        <textbox{#B} placeholder="soggy" autofocus/>
        <checkbox{#C}/>
        <email{#D}/>
        <url{#E}/>
        <tel{#F}/>
        <search{#G}/>

        <hr/>

        <color{#H}/>
        <number{#I} min={17.0} max={32.8} value={20.6} step={2.5}/>
        <range{#J} min={17.0} max={32.8} value={20.6}/>
        <date{#K}/>
        <datetime{#L}/>
        <datetime-local{#M}/>
        <month{#N}/>
        <week{#O}/>
        <timeInput{#P}/>

        <submit action={handler}/>
      </form>
    </body></xml>