summaryrefslogtreecommitdiff
path: root/src/html/html_document.c
diff options
context:
space:
mode:
authorrsk1994 <rsk1coder99@gmail.com>2014-05-15 05:43:49 +0530
committerRupinder Singh Khokhar <rsk1coder99@gmail.com>2014-06-11 04:27:07 +0530
commit501852e21d843601d2501cfe9cb31a13f259cf50 (patch)
tree64c082f770d6d04d3fb371a66e9f774e4d1a3deb /src/html/html_document.c
parent72de0d1c1b36201c72ac4881faa0b57b920aac63 (diff)
downloadlibdom-501852e21d843601d2501cfe9cb31a13f259cf50.tar.gz
libdom-501852e21d843601d2501cfe9cb31a13f259cf50.tar.bz2
Typecasting POC to correct DOMTSHandler. A minor dupliction fixed in Anchor Element. Image <img> 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 7841087..28e3ac0 100644
--- a/src/html/html_document.c
+++ b/src/html/html_document.c
@@ -43,6 +43,7 @@
#include "html/html_mod_element.h"
#include "html/html_anchor_element.h"
#include "html/html_basefont_element.h"
+#include "html/html_image_element.h"
#include "core/attr.h"
#include "core/string.h"
@@ -303,6 +304,9 @@ _dom_html_document_create_element_internal(dom_html_document *html,
} else if (dom_string_caseless_isequal(tag_name, html->memoised[hds_BASEFONT])) {
exc = _dom_html_base_font_element_create(html, namespace, prefix,
(dom_html_base_font_element **) result);
+ } else if (dom_string_caseless_isequal(tag_name, html->memoised[hds_IMG])) {
+ exc = _dom_html_image_element_create(html, namespace, prefix,
+ (dom_html_image_element **) result);
} else {
exc = _dom_html_element_create(html, tag_name, namespace,
prefix, result);