diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2012-09-16 19:41:46 +0200 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2012-09-16 19:41:46 +0200 |
commit | c1448e715d6f69c88e63dd8473dbb843272afa63 (patch) | |
tree | 01159f8c1bcac56a997ed8a8a888f46f8d65c3a7 | |
parent | 39f56de4ffa9c1fb9c25937ca53690192dfae326 (diff) |
fix erroneous BUG_MSG in display:none case
Move BUG_MSG() checks to the Html_tag_content_* function to
avoid erroneous BUG_MSG in display:none case.
-rw-r--r-- | src/table.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/table.cc b/src/table.cc index 27de6bfc..98157e76 100644 --- a/src/table.cc +++ b/src/table.cc @@ -349,13 +349,9 @@ static void Html_tag_open_table_cell(DilloHtml *html, switch (S_TOP(html)->table_mode) { case DILLO_HTML_TABLE_MODE_NONE: - BUG_MSG("<t%c> outside <table>\n", - (tagsize >=3 && (D_ASCII_TOLOWER(tag[2]) == 'd')) ? 'd' : 'h'); return; case DILLO_HTML_TABLE_MODE_TOP: - BUG_MSG("<t%c> outside <tr>\n", - (tagsize >=3 && (D_ASCII_TOLOWER(tag[2]) == 'd')) ? 'd' : 'h'); /* a_Dw_table_add_cell takes care that dillo does not crash. */ /* continues */ case DILLO_HTML_TABLE_MODE_TR: @@ -401,6 +397,8 @@ static void Html_tag_content_table_cell(DilloHtml *html, switch (S_TOP(html)->table_mode) { case DILLO_HTML_TABLE_MODE_NONE: + BUG_MSG("<t%c> outside <table>\n", + (tagsize >=3 && (D_ASCII_TOLOWER(tag[2]) == 'd')) ? 'd' : 'h'); return; case DILLO_HTML_TABLE_MODE_TOP: |