mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-25 05:27:00 +03:00
[project @ 2005-07-02 20:08:24 by bursa]
Fix hidden form inputs being rendered. svn path=/import/netsurf/; revision=1780
This commit is contained in:
parent
5abb753c85
commit
8a7ebeb2cc
@ -319,6 +319,11 @@ bool box_construct_element(xmlNode *n, struct content *content,
|
||||
return false;
|
||||
href = box->href;
|
||||
}
|
||||
if (style->display == CSS_DISPLAY_NONE) {
|
||||
talloc_free(style);
|
||||
box_free_box(box);
|
||||
return true;
|
||||
}
|
||||
|
||||
if (!*inline_container &&
|
||||
(box->type == BOX_INLINE ||
|
||||
@ -1744,6 +1749,8 @@ bool box_input(BOX_SPECIAL_PARAMS)
|
||||
|
||||
} else if (type && strcasecmp(type, "hidden") == 0) {
|
||||
/* no box for hidden inputs */
|
||||
box->style->display = CSS_DISPLAY_NONE;
|
||||
|
||||
gadget = form_new_control(GADGET_HIDDEN);
|
||||
if (!gadget)
|
||||
goto no_memory;
|
||||
|
Loading…
Reference in New Issue
Block a user