diff options
author | rsk1994 <rsk1coder99@gmail.com> | 2014-05-15 05:43:49 +0530 |
---|---|---|
committer | Rupinder Singh Khokhar <rsk1coder99@gmail.com> | 2014-06-21 17:37:12 +0530 |
commit | ffc8138ba026b6ce0471105ab431f054f24589ff (patch) | |
tree | 461457075883716916f2649fdfc0533c36586e90 /src/html/html_document.c | |
parent | 2eebfe9785e83b882dfac17c037bfd490cb0bb6a (diff) | |
download | libdom-ffc8138ba026b6ce0471105ab431f054f24589ff.tar.gz libdom-ffc8138ba026b6ce0471105ab431f054f24589ff.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.c | 4 |
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); |