summaryrefslogtreecommitdiff
path: root/sys/src/cmd/mothra/forms.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@centraldogma>2011-09-23 16:12:27 +0200
committercinap_lenrek <cinap_lenrek@centraldogma>2011-09-23 16:12:27 +0200
commitcec4e59dee19b398d95bc6e0d8ece2acdd0c8d84 (patch)
tree423260bd96b1d8e4f5934b99533e362f883835b7 /sys/src/cmd/mothra/forms.c
parenta8fdcbf3a2e100f1e8f2ee30bead4d0ed0172b41 (diff)
mothra: button tag, email input type
Diffstat (limited to 'sys/src/cmd/mothra/forms.c')
-rw-r--r--sys/src/cmd/mothra/forms.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/src/cmd/mothra/forms.c b/sys/src/cmd/mothra/forms.c
index 880b3c826..a68b972eb 100644
--- a/sys/src/cmd/mothra/forms.c
+++ b/sys/src/cmd/mothra/forms.c
@@ -118,6 +118,7 @@ void rdform(Hglob *g){
break;
case Tag_input:
+ case Tag_button:
if(g->form==0){
BadTag:
htmlerror(g->name, g->lineno, "<%s> not in form, ignored\n",
@@ -148,7 +149,9 @@ void rdform(Hglob *g){
f->maxlength=atoi(s);
s=pl_getattr(g->attr, "type");
/* bug -- password treated as text */
- if(s==0 || cistrcmp(s, "text")==0 || cistrcmp(s, "password")==0 || cistrcmp(s, "int")==0){
+ if(s==0 || cistrcmp(s, "text")==0 ||
+ cistrcmp(s, "password")==0 || cistrcmp(s, "int")==0 ||
+ cistrcmp(s, "email")==0){
s=pl_getattr(g->attr, "name");
if(s!=0 && strcmp(s, "isindex")==0)
f->type=INDEX;