summaryrefslogtreecommitdiff
path: root/tests/html5_forms.ur
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adam@chlipala.net>2014-11-16 14:02:17 -0500
committerGravatar Adam Chlipala <adam@chlipala.net>2014-11-16 14:02:17 -0500
commitcd1df17a1dac04f2a353fbc49284b775e78817a5 (patch)
treead2ce8905273af5770bd7217b18c7bb50be994e7 /tests/html5_forms.ur
parentff35b4cbd8c62fed584b48f660e4274c6e357893 (diff)
Make 'required' and 'autofocus' attributes Boolean; add a syntax extension for parsing their usual HTML syntax
Diffstat (limited to 'tests/html5_forms.ur')
-rw-r--r--tests/html5_forms.ur12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/html5_forms.ur b/tests/html5_forms.ur
new file mode 100644
index 00000000..2fa5c5c2
--- /dev/null
+++ b/tests/html5_forms.ur
@@ -0,0 +1,12 @@
+fun handler r = return <xml><body>
+</body></xml>
+
+fun main () =
+ return <xml><body>
+ <form>
+ <textbox{#A} required placeholder="bobby"/>
+ <textbox{#B} placeholder="soggy" autofocus/>
+
+ <submit action={handler}/>
+ </form>
+ </body></xml>