Crude attempt to make KMail more robust against "CSS injection" by HTML mail (#57684) by adding "! important" to the declarations. The other part of the fix is to scan any <script></script> areas and remove all ! important found there. However, that potentially changes the appearance of the HTML mail, which is not desireable.
Crude attempt to make KMail more robust against "CSS injection" by HTML mail (#57684) by adding "! important" to the declarations. The other part of the fix is to scan any <script></script> areas and remove all ! important found there. However, that potentially changes the appearance of the HTML mail, which is not desireable.

The ideal solution would be to scan the CSS rules in any <script> block in the to-be-embedded HTML and "escape" each selector there with "div.embeddedHTML >" and wrapping the included HTML into <div class="embeddedHTML">, but I don't see how that can be done with khtml instead of parsing css ourselves...
CCMAIL: 57684@bugs.kde.org

svn path=/trunk/kdepim/; revision=255814

lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi