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 /src/html/html_document.c | |
parent | e9f991799dd6ee22dcb8af367c72f58ac31e66ca (diff) | |
download | libdom-2a9572f844e04332d6a448b2f52be8ba2a5e8784.tar.gz libdom-2a9572f844e04332d6a448b2f52be8ba2a5e8784.tar.bz2 |
Mostly implement HTMLOptionElement, HTMLSelectElement.
Enable HTMLOptionElement tests that pass.
Diffstat (limited to 'src/html/html_document.c')
-rw-r--r-- | src/html/html_document.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/html/html_document.c b/src/html/html_document.c index ffc2e1c..7f29a5d 100644 --- a/src/html/html_document.c +++ b/src/html/html_document.c @@ -22,6 +22,8 @@ #include "html/html_input_element.h" #include "html/html_text_area_element.h" #include "html/html_opt_group_element.h" +#include "html/html_option_element.h" +#include "html/html_select_element.h" #include "core/string.h" #include "utils/namespace.h" @@ -210,6 +212,12 @@ _dom_html_document_create_element_internal(dom_html_document *html, } else if (dom_string_caseless_isequal(tag_name, html->memoised[hds_OPTGROUP])) { exc = _dom_html_opt_group_element_create(html, namespace, prefix, (dom_html_opt_group_element **) result); + } else if (dom_string_caseless_isequal(tag_name, html->memoised[hds_OPTION])) { + exc = _dom_html_option_element_create(html, namespace, prefix, + (dom_html_option_element **) result); + } else if (dom_string_caseless_isequal(tag_name, html->memoised[hds_SELECT])) { + exc = _dom_html_select_element_create(html, namespace, prefix, + (dom_html_select_element **) result); } else { exc = _dom_html_element_create(html, tag_name, namespace, prefix, result); |