diff options
author | John-Mark Bell <jmb@netsurf-browser.org> | 2012-08-08 10:56:53 +0100 |
---|---|---|
committer | John-Mark Bell <jmb@netsurf-browser.org> | 2012-08-08 10:56:53 +0100 |
commit | 2a9572f844e04332d6a448b2f52be8ba2a5e8784 (patch) | |
tree | 49788e878d5ce1aa92bf69c1a095c48d02a6195b /bindings/hubbub | |
parent | e9f991799dd6ee22dcb8af367c72f58ac31e66ca (diff) | |
download | libdom-2a9572f844e04332d6a448b2f52be8ba2a5e8784.tar.gz libdom-2a9572f844e04332d6a448b2f52be8ba2a5e8784.tar.bz2 |
Mostly implement HTMLOptionElement, HTMLSelectElement.
Enable HTMLOptionElement tests that pass.
Diffstat (limited to 'bindings/hubbub')
-rw-r--r-- | bindings/hubbub/parser.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/bindings/hubbub/parser.c b/bindings/hubbub/parser.c index 6174823..8296fe8 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_select_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) return HUBBUB_UNKNOWN; } } else if (dom_string_caseless_isequal(ele->name, + doc->memoised[hds_SELECT])) { + err = _dom_html_select_element_set_form( + (dom_html_select_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; + } + } 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); @@ -505,7 +515,7 @@ static hubbub_error form_associate(void *parser, void *form, void *node) return HUBBUB_UNKNOWN; } } - + return HUBBUB_OK; } |