summaryrefslogtreecommitdiff
path: root/src/html/html_document.c
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2012-07-08 10:45:55 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2012-07-08 10:45:55 +0100
commit518ac57a9ad7dc02b53611bcddbfd62688494a90 (patch)
tree4d763aca4deb59e4f21ffa8e348e576d7f10b954 /src/html/html_document.c
parent146bda077e00e3feffc3748af681f10494fc9c5c (diff)
downloadlibdom-518ac57a9ad7dc02b53611bcddbfd62688494a90.tar.gz
libdom-518ac57a9ad7dc02b53611bcddbfd62688494a90.tar.bz2
HTMLInputElement: Initial support and test enabling. Some TODOs left
Diffstat (limited to 'src/html/html_document.c')
-rw-r--r--src/html/html_document.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/html/html_document.c b/src/html/html_document.c
index 217e582..739477f 100644
--- a/src/html/html_document.c
+++ b/src/html/html_document.c
@@ -17,6 +17,8 @@
#include "html/html_title_element.h"
#include "html/html_meta_element.h"
#include "html/html_form_element.h"
+#include "html/html_button_element.h"
+#include "html/html_input_element.h"
#include "core/string.h"
#include "utils/namespace.h"
@@ -189,6 +191,16 @@ _dom_html_document_create_element_internal(dom_html_document *html,
(dom_html_link_element **) result);
}
+ if (dom_string_caseless_isequal(tag_name, html->memoised[hds_BUTTON])) {
+ return _dom_html_button_element_create(html, namespace, prefix,
+ (dom_html_button_element **) result);
+ }
+
+ if (dom_string_caseless_isequal(tag_name, html->memoised[hds_INPUT])) {
+ return _dom_html_input_element_create(html, namespace, prefix,
+ (dom_html_input_element **) result);
+ }
+
return _dom_html_element_create(html, tag_name, namespace, prefix,
result);
}