]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix style propagation
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 16 Jul 2021 09:49:09 +0000 (10:49 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 16 Jul 2021 09:49:09 +0000 (10:49 +0100)
src/libserver/html/html_block.hxx
src/libserver/html/html_tests.cxx

index 8416bbc5a5ee3b6c797c760876c1ed1f4ef91725..01b5b17b9bf7cd523159955c5859211fdeb26aa6 100644 (file)
@@ -157,6 +157,7 @@ struct html_block {
                                /* We propagate parent if defined */
                                if (other.mask & mask_val) {
                                        our_val = other_val;
+                                       mask |= mask_val;
                                }
                                /* Otherwise do nothing */
                        }
index 73f2ad81b072101e4014622add09f55d15d706bd..e98ab61c230348bb832dd8a817eaa60981c8a5a1 100644 (file)
@@ -164,6 +164,9 @@ TEST_CASE("html text extraction")
                         "&nbsp;</p>",
                                        " Sincerely,\n Skype Web\n"},
                        {"lala<p hidden>fafa</p>", "lala"},
+                       {"<table style=\"FONT-SIZE: 0px;\"><tbody><tr><td>\n"
+                        "DONKEY\n"
+                        "</td></tr></tbody></table>", ""},
                        /* bgcolor propagation */
                        {"<a style=\"display: inline-block; color: #ffffff; background-color: #00aff0;\">\n"
                         "<span style=\"color: #00aff0;\">F</span>Rev<span style=\"opacity: 1;\"></span></span>ie<span style=\"opacity: 1;\"></span>"