summaryrefslogtreecommitdiff
path: root/src/html/html_document.c
diff options
context:
space:
mode:
authorMichael Drake <michael.drake@codethink.co.uk>2016-01-27 15:02:50 +0000
committerMichael Drake <michael.drake@codethink.co.uk>2016-01-27 15:20:39 +0000
commit81c012f5709d09eee22f337ac2ee33ea80fbe299 (patch)
tree42a900226ad41468a291e8161857dd455feae30a /src/html/html_document.c
parent8d09ec06b447d6383718edc5f0f50b354628469d (diff)
downloadlibdom-81c012f5709d09eee22f337ac2ee33ea80fbe299.tar.gz
libdom-81c012f5709d09eee22f337ac2ee33ea80fbe299.tar.bz2
Add missing detection of HTMLMetaElement specialisation.
Diffstat (limited to 'src/html/html_document.c')
-rw-r--r--src/html/html_document.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/html/html_document.c b/src/html/html_document.c
index 5965e47..2e44a81 100644
--- a/src/html/html_document.c
+++ b/src/html/html_document.c
@@ -263,6 +263,9 @@ static inline dom_html_element_type _dom_html_document_get_element_type(
html->elements[DOM_HTML_ELEMENT_TYPE_HEAD])) {
return DOM_HTML_ELEMENT_TYPE_HEAD;
} else if (dom_string_caseless_isequal(tag_name_upper,
+ html->elements[DOM_HTML_ELEMENT_TYPE_META])) {
+ return DOM_HTML_ELEMENT_TYPE_META;
+ } else if (dom_string_caseless_isequal(tag_name_upper,
html->elements[DOM_HTML_ELEMENT_TYPE_TITLE])) {
return DOM_HTML_ELEMENT_TYPE_TITLE;
} else if (dom_string_caseless_isequal(tag_name_upper,
@@ -477,6 +480,10 @@ _dom_html_document_create_element_internal(
exc = _dom_html_head_element_create(html, namespace, prefix,
(dom_html_head_element **) result);
break;
+ case DOM_HTML_ELEMENT_TYPE_META:
+ exc = _dom_html_meta_element_create(html, namespace, prefix,
+ (dom_html_meta_element **) result);
+ break;
case DOM_HTML_ELEMENT_TYPE_TITLE:
exc = _dom_html_title_element_create(html, namespace, prefix,
(dom_html_title_element **) result);