summaryrefslogtreecommitdiff
path: root/content/handlers/html/box_construct.c
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2019-08-04 22:07:42 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2019-08-04 22:07:42 +0100
commit05c6ee02d99ea04dde6687d94508b40f4393f77b (patch)
tree47ead2087a29ecf2c89a22cc0281099142cb0e9f /content/handlers/html/box_construct.c
parente78dc4f5a945f2035f48c8dc01cd3b1d76f03c81 (diff)
downloadnetsurf-05c6ee02d99ea04dde6687d94508b40f4393f77b.tar.gz
netsurf-05c6ee02d99ea04dde6687d94508b40f4393f77b.tar.bz2
html: Mirror gadget values in and out of the DOM
Currently only supporting text input, password input, and hidden input, along with text areas, this mirrors the text values in and out of the DOM, allowing JS to adjust the gadget values and for the gadget values to be interrogated from JS. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Diffstat (limited to 'content/handlers/html/box_construct.c')
-rw-r--r--content/handlers/html/box_construct.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/content/handlers/html/box_construct.c b/content/handlers/html/box_construct.c
index a0eb69ed5..1f15d82b7 100644
--- a/content/handlers/html/box_construct.c
+++ b/content/handlers/html/box_construct.c
@@ -211,7 +211,8 @@ static const box_type box_map[] = {
BOX_NONE /*CSS_DISPLAY_NONE*/
};
-static inline struct box *box_for_node(dom_node *n)
+/* Exported function, see box.h */
+struct box *box_for_node(dom_node *n)
{
struct box *box = NULL;
dom_exception err;