summaryrefslogtreecommitdiff
path: root/src/html/html_document.c
diff options
context:
space:
mode:
authorrsk1994 <rsk1coder99@gmail.com>2014-05-19 06:52:56 +0530
committerRupinder Singh Khokhar <rsk1coder99@gmail.com>2014-06-11 04:27:10 +0530
commit1dd1c7617aae1a4bd285d83a3c73d5d2f53761d7 (patch)
tree9f939c0616a1761e4db2a0ec5ab788b224713641 /src/html/html_document.c
parent3c9d9494222d81c207cc09a7686cca50db109c0b (diff)
downloadlibdom-1dd1c7617aae1a4bd285d83a3c73d5d2f53761d7.tar.gz
libdom-1dd1c7617aae1a4bd285d83a3c73d5d2f53761d7.tar.bz2
TableCell Element & possible bug fix on TableCaption ELement
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 6eda5e8..939b031 100644
--- a/src/html/html_document.c
+++ b/src/html/html_document.c
@@ -51,6 +51,7 @@
#include "html/html_area_element.h"
#include "html/html_script_element.h"
#include "html/html_tablecaption_element.h"
+#include "html/html_tablecell_element.h"
#include "core/attr.h"
#include "core/string.h"
@@ -335,6 +336,11 @@ _dom_html_document_create_element_internal(dom_html_document *html,
} else if (dom_string_caseless_isequal(tag_name, html->memoised[hds_CAPTION])) {
exc = _dom_html_table_caption_element_create(html, namespace, prefix,
(dom_html_table_caption_element **) result);
+ } else if (dom_string_caseless_isequal(tag_name, html->memoised[hds_TD]) ||
+ dom_string_caseless_isequal(tag_name, html->memoised[hds_TH])
+ ) {
+ exc = _dom_html_table_cell_element_create(html, tag_name, namespace, prefix,
+ (dom_html_table_cell_element **) result);
} else {
exc = _dom_html_element_create(html, tag_name, namespace,
prefix, result);