Browse Source

upd attribute enctype keys

221V 1 year ago
parent
commit
816c049e87
2 changed files with 6 additions and 3 deletions
  1. 3 0
      CHANGELOG.md
  2. 3 3
      src/elements/form/element_form.erl

+ 3 - 0
CHANGELOG.md

@@ -33,6 +33,9 @@
 | ```<<"wrap">>``` | ```hard``` | ```"hard"``` |
 | ```<<"wrap">>``` | ```soft``` | ```"soft"``` |
 | ```<<"method">>``` | ```post``` | ```"post"``` |
+| ```<<"enctype">>``` | ```'application/x-www-form-urlencoded'``` | ```"application/x-www-form-urlencoded"``` |
+| ```<<"enctype">>``` | ```'multipart/form-data'``` | ```"multipart/form-data"``` |
+| ```<<"enctype">>``` | ```'text/plain'``` | ```"text/plain"``` |
 
 
 ##### 6.6.2-erl19

+ 3 - 3
src/elements/form/element_form.erl

@@ -90,9 +90,9 @@ render_element(Record) ->
     
     {<<"enctype">>,
        case Record#form.enctype of
-         "application/x-www-form-urlencoded" -> "application/x-www-form-urlencoded";
-         "multipart/form-data" -> "multipart/form-data";
-         "text/plain" -> "text/plain";
+         'application/x-www-form-urlencoded' -> "application/x-www-form-urlencoded";
+         'multipart/form-data' -> "multipart/form-data";
+         'text/plain' -> "text/plain";
          _ -> []
        end},