summaryrefslogtreecommitdiff
path: root/src/html/html_document.c
diff options
context:
space:
mode:
authorrsk1994 <rsk1coder99@gmail.com>2014-03-05 19:25:45 +0530
committerrsk1994 <rsk1coder99@gmail.com>2014-03-05 19:25:45 +0530
commitdc6bcfdcc5058940a0ffc919587f1cce5c63ec2f (patch)
tree8942a65e0fd25edfdb4edff8155d6fd471340b2a /src/html/html_document.c
parentec446872606a65cf59e6bbbded464110353d9c59 (diff)
downloadlibdom-dc6bcfdcc5058940a0ffc919587f1cce5c63ec2f.tar.gz
libdom-dc6bcfdcc5058940a0ffc919587f1cce5c63ec2f.tar.bz2
final patch for adding hr tag to libdom
Diffstat (limited to 'src/html/html_document.c')
-rw-r--r--src/html/html_document.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/html/html_document.c b/src/html/html_document.c
index fb880cf..0da16bb 100644
--- a/src/html/html_document.c
+++ b/src/html/html_document.c
@@ -24,6 +24,7 @@
#include "html/html_opt_group_element.h"
#include "html/html_option_element.h"
#include "html/html_select_element.h"
+#include "html/html_hr_element.h"
#include "core/attr.h"
#include "core/string.h"
@@ -220,6 +221,9 @@ _dom_html_document_create_element_internal(dom_html_document *html,
} else if (dom_string_caseless_isequal(tag_name, html->memoised[hds_SELECT])) {
exc = _dom_html_select_element_create(html, namespace, prefix,
(dom_html_select_element **) result);
+ } else if (dom_string_caseless_isequal(tag_name, html->memoised[hds_HR])) {
+ exc = _dom_html_hr_element_create(html, namespace, prefix,
+ (dom_html_hr_element **) result);
} else {
exc = _dom_html_element_create(html, tag_name, namespace,
prefix, result);