diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2009-03-10 23:10:21 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2009-03-10 23:10:21 +0000 |
commit | 6576b240d569001b64ee7f1e4eea8c5111f3a718 (patch) | |
tree | c13551099982c4e2155d7863c56c295a90a5ce29 | |
parent | ea9642779e6def5d819230403fb16523d0bb70e1 (diff) | |
download | libhubbub-6576b240d569001b64ee7f1e4eea8c5111f3a718.tar.gz libhubbub-6576b240d569001b64ee7f1e4eea8c5111f3a718.tar.bz2 |
Fix form association. It kinda helps to associate the form-related object, rather than whatever happens to be on the top of the stack at the time.
svn path=/trunk/hubbub/; revision=6768
-rw-r--r-- | src/treebuilder/treebuilder.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/treebuilder/treebuilder.c b/src/treebuilder/treebuilder.c index 37de764..754d246 100644 --- a/src/treebuilder/treebuilder.c +++ b/src/treebuilder/treebuilder.c @@ -720,12 +720,11 @@ void insert_element(hubbub_treebuilder *treebuilder, const hubbub_tag *tag, type = element_type_from_name(treebuilder, &tag->name); if (treebuilder->context.form_element != NULL && is_form_associated(type)) { - /** \todo consider @form, or leave it to the client? */ + /* Consideration of @form is left to the client */ treebuilder->tree_handler->form_associate( treebuilder->tree_handler->ctx, treebuilder->context.form_element, - treebuilder->context.element_stack[ - treebuilder->context.current_node].node); + appended); } if (push) { |