summaryrefslogtreecommitdiff
path: root/content/handlers/html/form_internal.h
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2018-09-26 17:14:25 +0100
committerVincent Sanders <vince@kyllikki.org>2018-09-26 17:21:48 +0100
commit5c96acd6f119b71fc75e5d48465afca9fd13e87f (patch)
treeebe6b2b07b6767f1c892a35ba99295b4cd17ec59 /content/handlers/html/form_internal.h
parent9100fcb4095cf8858d4cd2c613bff69ceb4f71ec (diff)
downloadnetsurf-5c96acd6f119b71fc75e5d48465afca9fd13e87f.tar.gz
netsurf-5c96acd6f119b71fc75e5d48465afca9fd13e87f.tar.bz2
fix url encoding to be compatible with nsurl API changes.
As part of this fix the form submission error handling and reporting has been improved.
Diffstat (limited to 'content/handlers/html/form_internal.h')
-rw-r--r--content/handlers/html/form_internal.h35
1 files changed, 11 insertions, 24 deletions
diff --git a/content/handlers/html/form_internal.h b/content/handlers/html/form_internal.h
index a77e823b3..f76f126b4 100644
--- a/content/handlers/html/form_internal.h
+++ b/content/handlers/html/form_internal.h
@@ -195,29 +195,6 @@ bool form_successful_controls(struct form *form,
struct fetch_multipart_data **successful_controls);
/**
- * Identify 'successful' controls via the DOM.
- *
- * All text strings in the successful controls list will be in the charset most
- * appropriate for submission. Therefore, no utf8_to_* processing should be
- * performed upon them.
- *
- * \todo The chosen charset needs to be made available such that it can be
- * included in the submission request (e.g. in the fetch's Content-Type header)
- *
- * See HTML 4.01 section 17.13.2.
- *
- * \param[in] form form to search for successful controls
- * \param[in] submit_button control used to submit the form, if any
- * \param[out] successful_controls updated to point to linked list of
- * fetch_multipart_data, 0 if no controls
- * \return true on success, false on memory exhaustion
- */
-bool form_successful_controls_dom(struct form *form,
- struct form_control *submit_button,
- struct fetch_multipart_data **successful_controls);
-
-
-/**
* Open a select menu for a select form control, creating it if necessary.
*
* \param client_data data passed to the redraw callback
@@ -268,8 +245,18 @@ void form_select_mouse_drag_end(struct form_control *control,
enum browser_mouse_state mouse, int x, int y);
void form_select_get_dimensions(struct form_control *control,
int *width, int *height);
-void form_submit(struct nsurl *page_url, struct browser_window *target,
+
+/**
+ * navigate browser window based on form submission.
+ *
+ * \param page_url content url
+ * \param target The browsing context in which the navigation will occour.
+ * \param form The form to submit.
+ * \param submit_button The control used to submit the form.
+ */
+nserror form_submit(struct nsurl *page_url, struct browser_window *target,
struct form *form, struct form_control *submit_button);
+
void form_radio_set(struct form_control *radio);
void form_gadget_update_value(struct form_control *control, char *value);