diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2009-02-20 13:10:07 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2009-02-20 13:10:07 +0000 |
commit | 89298521a204858f7e5272097434f1f9c6a5c8d5 (patch) | |
tree | e3befa8c612c8c637b821366738029c74759254c /src/treebuilder | |
parent | 4456645b451300aff4a763e966746e247ec5ae39 (diff) | |
download | libhubbub-89298521a204858f7e5272097434f1f9c6a5c8d5.tar.gz libhubbub-89298521a204858f7e5272097434f1f9c6a5c8d5.tar.bz2 |
Actually associate textareas with forms
svn path=/trunk/hubbub/; revision=6578
Diffstat (limited to 'src/treebuilder')
-rw-r--r-- | src/treebuilder/treebuilder.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/src/treebuilder/treebuilder.c b/src/treebuilder/treebuilder.c index 1cdb8ce..b7d6720 100644 --- a/src/treebuilder/treebuilder.c +++ b/src/treebuilder/treebuilder.c @@ -488,13 +488,6 @@ void parse_generic_rcdata(hubbub_treebuilder *treebuilder, /** \todo errors */ } - /* It's a bit nasty having this code deal with textarea->form - * association, but it avoids having to duplicate the entire rest - * of this function for textarea processing */ - if (type == TEXTAREA && treebuilder->context.form_element != NULL) { - /** \todo associate textarea with form */ - } - if (treebuilder->context.in_table_foster) { appended = aa_insert_into_foster_parent(treebuilder, node); treebuilder->tree_handler->ref_node( @@ -523,6 +516,16 @@ void parse_generic_rcdata(hubbub_treebuilder *treebuilder, } } + /* It's a bit nasty having this code deal with textarea->form + * association, but it avoids having to duplicate the entire rest + * of this function for textarea processing */ + if (type == TEXTAREA && treebuilder->context.form_element != NULL) { + treebuilder->tree_handler->form_associate( + treebuilder->tree_handler->ctx, + treebuilder->context.form_element, + appended); + } + /* Appended node's reference count is 2 */ params.content_model.model = rcdata ? HUBBUB_CONTENT_MODEL_RCDATA |