summaryrefslogtreecommitdiff
path: root/bindings/hubbub
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2012-07-18 17:30:16 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2012-07-18 17:30:16 +0100
commit4e9b84df0f10116c0e73f1aaf80f9327d2bbbd3d (patch)
tree70dac023c6d299bb168c6f20c582b4c42fc6c4ea /bindings/hubbub
parenta39e9bba071975fd6f81e5a4382f37e1f07db214 (diff)
downloadlibdom-4e9b84df0f10116c0e73f1aaf80f9327d2bbbd3d.tar.gz
libdom-4e9b84df0f10116c0e73f1aaf80f9327d2bbbd3d.tar.bz2
HTMLTextAreaElement: Make it work
Diffstat (limited to 'bindings/hubbub')
-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;