summaryrefslogtreecommitdiff
path: root/src/html/html_document.c
diff options
context:
space:
mode:
authorMichael Drake <michael.drake@codethink.co.uk>2016-01-27 14:43:38 +0000
committerMichael Drake <michael.drake@codethink.co.uk>2016-01-27 15:20:35 +0000
commit8d09ec06b447d6383718edc5f0f50b354628469d (patch)
tree4d6be77553b6d702cac3626c80a73426bfca69b1 /src/html/html_document.c
parentdd2e075fe7be7620acac88e73dd73c336171bedd (diff)
downloadlibdom-8d09ec06b447d6383718edc5f0f50b354628469d.tar.gz
libdom-8d09ec06b447d6383718edc5f0f50b354628469d.tar.bz2
Add missing detection of HTMLDivElement specialisation.
Diffstat (limited to 'src/html/html_document.c')
-rw-r--r--src/html/html_document.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/html/html_document.c b/src/html/html_document.c
index 2dc63d9..5965e47 100644
--- a/src/html/html_document.c
+++ b/src/html/html_document.c
@@ -16,6 +16,7 @@
#include "html/html_html_element.h"
#include "html/html_head_element.h"
#include "html/html_body_element.h"
+#include "html/html_div_element.h"
#include "html/html_link_element.h"
#include "html/html_title_element.h"
#include "html/html_meta_element.h"
@@ -268,6 +269,9 @@ static inline dom_html_element_type _dom_html_document_get_element_type(
html->elements[DOM_HTML_ELEMENT_TYPE_BODY])) {
return DOM_HTML_ELEMENT_TYPE_BODY;
} else if (dom_string_caseless_isequal(tag_name_upper,
+ html->elements[DOM_HTML_ELEMENT_TYPE_DIV])) {
+ return DOM_HTML_ELEMENT_TYPE_DIV;
+ } else if (dom_string_caseless_isequal(tag_name_upper,
html->elements[DOM_HTML_ELEMENT_TYPE_FORM])) {
return DOM_HTML_ELEMENT_TYPE_FORM;
} else if (dom_string_caseless_isequal(tag_name_upper,
@@ -481,6 +485,10 @@ _dom_html_document_create_element_internal(
exc = _dom_html_body_element_create(html, namespace, prefix,
(dom_html_body_element **) result);
break;
+ case DOM_HTML_ELEMENT_TYPE_DIV:
+ exc = _dom_html_div_element_create(html, namespace, prefix,
+ (dom_html_div_element **) result);
+ break;
case DOM_HTML_ELEMENT_TYPE_FORM:
exc = _dom_html_form_element_create(html, namespace, prefix,
(dom_html_form_element **) result);