summaryrefslogtreecommitdiff
path: root/src/urweb.grm
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adam@chlipala.net>2011-12-31 13:31:00 -0500
committerGravatar Adam Chlipala <adam@chlipala.net>2011-12-31 13:31:00 -0500
commit46a73a9e03871e691af170d98dd24edfb9c4ff32 (patch)
tree1d03350e696d6cf64b203f8ab465451a9498df32 /src/urweb.grm
parent634eee2d60c71d5a50e6bc6c3364d49548f58599 (diff)
Error messages about applying 'dynClass' to tags that don't like it
Diffstat (limited to 'src/urweb.grm')
-rw-r--r--src/urweb.grm3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/urweb.grm b/src/urweb.grm
index 7ec580f3..1a9eb855 100644
--- a/src/urweb.grm
+++ b/src/urweb.grm
@@ -1462,6 +1462,9 @@ xmlOne : NOTAGS (EApp ((EVar (["Basis"], "cdata", Infer)
NONE => (EVar (["Basis"], "None", Infer), pos)
| SOME c => (EApp ((EVar (["Basis"], "Some", Infer), pos), c), pos)), pos)
in
+ case #3 tag of
+ NONE => ()
+ | SOME _ => ErrorMsg.errorAt pos "<form> does not support 'dynClass' attribute";
(EApp (e, xmlOpt), pos)
end
else if et = "subform" orelse et = "subforms" then