summaryrefslogtreecommitdiff
path: root/src/html/html_document.c
diff options
context:
space:
mode:
authorrsk1994 <rsk1coder99@gmail.com>2014-05-03 01:34:40 +0530
committerRupinder Singh Khokhar <rsk1coder99@gmail.com>2014-06-11 04:27:03 +0530
commitd82ef1d51de315ab8b976854319bc3bcaffba07f (patch)
treebe5744e9dddaaec3b7b6d42a9a9158e79010cf8e /src/html/html_document.c
parent2b87ff19433e1ced046a3967887416c85561606c (diff)
downloadlibdom-d82ef1d51de315ab8b976854319bc3bcaffba07f.tar.gz
libdom-d82ef1d51de315ab8b976854319bc3bcaffba07f.tar.bz2
Paragraph Element
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 27016ef..823194c 100644
--- a/src/html/html_document.c
+++ b/src/html/html_document.c
@@ -30,6 +30,7 @@
#include "html/html_menu_element.h"
#include "html/html_fieldset_element.h"
#include "html/html_legend_element.h"
+#include "html/html_paragraph_element.h"
#include "core/attr.h"
#include "core/string.h"
@@ -244,6 +245,9 @@ _dom_html_document_create_element_internal(dom_html_document *html,
} else if (dom_string_caseless_isequal(tag_name, html->memoised[hds_LEGEND])) {
exc = _dom_html_legend_element_create(html, namespace, prefix,
(dom_html_legend_element **) result);
+ } else if (dom_string_caseless_isequal(tag_name, html->memoised[hds_P])) {
+ exc = _dom_html_paragraph_element_create(html, namespace, prefix,
+ (dom_html_paragraph_element **) result);
} else {
exc = _dom_html_element_create(html, tag_name, namespace,
prefix, result);