Allow src and alt on input buttons in forms - used primarily for <input type=image...
authorrich <rich>
Fri, 15 Oct 2004 20:11:41 +0000 (20:11 +0000)
committerrich <rich>
Fri, 15 Oct 2004 20:11:41 +0000 (20:11 +0000)
scripts/wikilib.ml

index f4b309b..e2a04fb 100644 (file)
@@ -1,7 +1,7 @@
 (* COCANWIKI - a wiki written in Objective CAML.
  * Written by Richard W.M. Jones <rich@merjis.com>.
  * Copyright (C) 2004 Merjis Ltd.
- * $Id: wikilib.ml,v 1.13 2004/10/14 15:57:15 rich Exp $
+ * $Id: wikilib.ml,v 1.14 2004/10/15 20:11:41 rich Exp $
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -444,7 +444,7 @@ let allowed_elements =
 
   let forms = [
     "form", [ "method"; "action"; "enctype" ];
-    "input", [ "name"; "value"; "type"; "size"; "maxlength" ];
+    "input", [ "name"; "value"; "type"; "size"; "maxlength"; "src"; "alt" ];
     "textarea", [ "name"; "rows"; "cols" ];
   ] in