summaryrefslogtreecommitdiff
path: root/render/form.h
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2005-06-26 01:55:20 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2005-06-26 01:55:20 +0000
commit3286c99dd514b7aa20b23477e17f9b63a4d65bf9 (patch)
treedabc3b9ea208c84b07a08cb2620ee0aa61c0666f /render/form.h
parent26872ea54f703ab316c31655d2eeeca83b5ca36e (diff)
downloadnetsurf-3286c99dd514b7aa20b23477e17f9b63a4d65bf9.tar.gz
netsurf-3286c99dd514b7aa20b23477e17f9b63a4d65bf9.tar.bz2
[project @ 2005-06-26 01:55:20 by jmb]
Move acceptable character set determination to form submission time, rather thanat box tree creation time. Use UTF-8 encoding, if specified, else use first specified encoding. Improve use of utf8_to_enc - falling back to document encoding then 8859-1 where appropriate. svn path=/import/netsurf/; revision=1765
Diffstat (limited to 'render/form.h')
-rw-r--r--render/form.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/render/form.h b/render/form.h
index c1e01ae0a..48630dea2 100644
--- a/render/form.h
+++ b/render/form.h
@@ -31,7 +31,8 @@ typedef enum {
struct form {
char *action; /**< URL to submit to. */
form_method method; /**< Method and enctype. */
- char *charset; /**< Charset to submit form in */
+ char *accept_charsets; /**< Charset to submit form in */
+ char *document_charset; /**< Charset of document containing form */
struct form_control *controls; /**< Linked list of controls. */
struct form_control *last_control; /**< Last control in list. */
struct form *prev; /**< Previous form in doc. */
@@ -102,7 +103,8 @@ struct form_successful_control {
struct form_successful_control *next; /**< Next in linked list. */
};
-struct form *form_new(char *action, form_method method, char *charset);
+struct form *form_new(char *action, form_method method, char *charset,
+ char *doc_charset);
struct form_control *form_new_control(form_control_type type);
void form_add_control(struct form *form, struct form_control *control);
void form_free_control(struct form_control *control);