summaryrefslogtreecommitdiff
path: root/render
diff options
context:
space:
mode:
authorRichard Wilson <rjw@netsurf-browser.org>2006-12-30 02:10:46 +0000
committerRichard Wilson <rjw@netsurf-browser.org>2006-12-30 02:10:46 +0000
commitf4b8d3a0091a4a3a3d0d0bab5a683cb7600b66e5 (patch)
tree5f56105fcb4121c8263e8491116899fbc22fc644 /render
parent1353585036eac67feeffdda4de20d91f036c1576 (diff)
downloadnetsurf-f4b8d3a0091a4a3a3d0d0bab5a683cb7600b66e5.tar.gz
netsurf-f4b8d3a0091a4a3a3d0d0bab5a683cb7600b66e5.tar.bz2
Reflow iframes on layout (fix 1617625)
svn path=/trunk/netsurf/; revision=3126
Diffstat (limited to 'render')
-rw-r--r--render/box_construct.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/render/box_construct.c b/render/box_construct.c
index 41df9ad3b..1f1cc86a4 100644
--- a/render/box_construct.c
+++ b/render/box_construct.c
@@ -1923,7 +1923,7 @@ bool box_iframe(BOX_SPECIAL_PARAMS)
bool box_form(BOX_SPECIAL_PARAMS)
{
- char *xmlaction, *action, *faction, *method, *enctype, *charset;
+ char *xmlaction, *action, *faction, *method, *enctype, *charset, *target;
form_method fmethod;
struct form *form;
url_func_result result;
@@ -1969,11 +1969,15 @@ bool box_form(BOX_SPECIAL_PARAMS)
/* acceptable encoding(s) for form data */
charset = (char *) xmlGetProp(n, (const xmlChar *) "accept-charset");
+
+ /* target for form data */
+ target = (char *) xmlGetProp(n, (const xmlChar *) "target");
- form = form_new(faction, fmethod, charset,
+ form = form_new(faction, target, fmethod, charset,
content->data.html.encoding);
if (!form) {
free(faction);
+ xmlFree(target);
xmlFree(charset);
return false;
}