summaryrefslogtreecommitdiff
path: root/src/html/html_document.c
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 /src/html/html_document.c
parenta39e9bba071975fd6f81e5a4382f37e1f07db214 (diff)
downloadlibdom-4e9b84df0f10116c0e73f1aaf80f9327d2bbbd3d.tar.gz
libdom-4e9b84df0f10116c0e73f1aaf80f9327d2bbbd3d.tar.bz2
HTMLTextAreaElement: Make it work
Diffstat (limited to 'src/html/html_document.c')
-rw-r--r--src/html/html_document.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/html/html_document.c b/src/html/html_document.c
index 739477f..ec88ebc 100644
--- a/src/html/html_document.c
+++ b/src/html/html_document.c
@@ -19,6 +19,7 @@
#include "html/html_form_element.h"
#include "html/html_button_element.h"
#include "html/html_input_element.h"
+#include "html/html_text_area_element.h"
#include "core/string.h"
#include "utils/namespace.h"
@@ -201,6 +202,11 @@ _dom_html_document_create_element_internal(dom_html_document *html,
(dom_html_input_element **) result);
}
+ if (dom_string_caseless_isequal(tag_name, html->memoised[hds_TEXTAREA])) {
+ return _dom_html_text_area_element_create(html, namespace, prefix,
+ (dom_html_text_area_element **) result);
+ }
+
return _dom_html_element_create(html, tag_name, namespace, prefix,
result);
}