diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2019-08-04 22:07:42 +0100 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2019-08-04 22:07:42 +0100 |
commit | 05c6ee02d99ea04dde6687d94508b40f4393f77b (patch) | |
tree | 47ead2087a29ecf2c89a22cc0281099142cb0e9f /content/handlers/html/box.h | |
parent | e78dc4f5a945f2035f48c8dc01cd3b1d76f03c81 (diff) | |
download | netsurf-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.h')
-rw-r--r-- | content/handlers/html/box.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/content/handlers/html/box.h b/content/handlers/html/box.h index 0952b841b..6939cfe1a 100644 --- a/content/handlers/html/box.h +++ b/content/handlers/html/box.h @@ -377,4 +377,12 @@ static inline bool box_is_first_child(struct box *b) return (b->parent == NULL || b == b->parent->children); } +/** + * Retrieve the box for a dom node, if there is one + * + * \param node The DOM node + * \return The box if there is one + */ +struct box *box_for_node(struct dom_node *node); + #endif |