diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2012-07-07 16:28:04 +0100 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2012-07-07 16:29:28 +0100 |
commit | 3ef2a1413de900aa096887bfbf7e6447c41c668a (patch) | |
tree | 611bc7db26cecf9570cc71aa41f6a56fbd19c873 /src/html/html_document.c | |
parent | aa8a5b2dc324a9c25f3cde9316060d0c411ca4c2 (diff) | |
download | libdom-3ef2a1413de900aa096887bfbf7e6447c41c668a.tar.gz libdom-3ef2a1413de900aa096887bfbf7e6447c41c668a.tar.bz2 |
HTMLFormElement: Initial support, 2 tests now pass
Diffstat (limited to 'src/html/html_document.c')
-rw-r--r-- | src/html/html_document.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/html/html_document.c b/src/html/html_document.c index 11ee899..288de82 100644 --- a/src/html/html_document.c +++ b/src/html/html_document.c @@ -14,6 +14,7 @@ #include "html/html_html_element.h" #include "html/html_head_element.h" #include "html/html_title_element.h" +#include "html/html_form_element.h" #include "core/string.h" #include "utils/namespace.h" @@ -176,6 +177,11 @@ _dom_html_document_create_element_internal(dom_html_document *html, (dom_html_title_element **) result); } + if (dom_string_caseless_isequal(tag_name, html->memoised[hds_FORM])) { + return _dom_html_form_element_create(html, namespace, prefix, + (dom_html_form_element **) result); + } + return _dom_html_element_create(html, tag_name, namespace, prefix, result); } |