summaryrefslogtreecommitdiff
path: root/bindings
diff options
context:
space:
mode:
Diffstat (limited to 'bindings')
-rw-r--r--bindings/hubbub/parser.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/bindings/hubbub/parser.c b/bindings/hubbub/parser.c
index 173d45f..a4a9a2e 100644
--- a/bindings/hubbub/parser.c
+++ b/bindings/hubbub/parser.c
@@ -26,6 +26,7 @@
#include "html/html_document.h"
#include "html/html_button_element.h"
#include "html/html_input_element.h"
+#include "html/html_text_area_element.h"
#include <libwapcaplet/libwapcaplet.h>
@@ -496,6 +497,15 @@ static hubbub_error form_associate(void *parser, void *form, void *node)
"Error in form_associate");
return HUBBUB_UNKNOWN;
}
+ } else if (dom_string_caseless_isequal(ele->name,
+ doc->memoised[hds_TEXTAREA])) {
+ err = _dom_html_text_area_element_set_form(
+ (dom_html_text_area_element *)node, form_ele);
+ if (err != DOM_NO_ERR) {
+ dom_parser->msg(DOM_MSG_CRITICAL, dom_parser->mctx,
+ "Error in form_associate");
+ return HUBBUB_UNKNOWN;
+ }
}
return HUBBUB_OK;