summaryrefslogtreecommitdiff
path: root/src/html/html_document.c
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2012-07-19 13:06:22 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2012-07-19 13:06:22 +0100
commita7b84b02a09f171157812a28691369eeafbbf7e4 (patch)
treea6237217ab7a4d58e7f3268bbd607f12dac19a5c /src/html/html_document.c
parent3c0511ee915665dca67f53165bdf1bacf30b2854 (diff)
downloadlibdom-a7b84b02a09f171157812a28691369eeafbbf7e4.tar.gz
libdom-a7b84b02a09f171157812a28691369eeafbbf7e4.tar.bz2
HTMLOptGroupElement: Implementation
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 ec88ebc..a2a7ed5 100644
--- a/src/html/html_document.c
+++ b/src/html/html_document.c
@@ -20,6 +20,7 @@
#include "html/html_button_element.h"
#include "html/html_input_element.h"
#include "html/html_text_area_element.h"
+#include "html/html_opt_group_element.h"
#include "core/string.h"
#include "utils/namespace.h"
@@ -207,6 +208,11 @@ _dom_html_document_create_element_internal(dom_html_document *html,
(dom_html_text_area_element **) result);
}
+ if (dom_string_caseless_isequal(tag_name, html->memoised[hds_OPTGROUP])) {
+ return _dom_html_opt_group_element_create(html, namespace, prefix,
+ (dom_html_opt_group_element **) result);
+ }
+
return _dom_html_element_create(html, tag_name, namespace, prefix,
result);
}