You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are using htmlpurifier for nextcloud/mail to sanitize the body of html messages and have a bug report that a mail is not rendered correctly (nextcloud/mail#5279).
if ($y === '*' || isset($html_definition->info[$y = strtolower($y)])) {
A test case for ExtractStyleBlocksTest:
public function test_cleanCSS_elementWithAttribute()
{
$this->assertCleanCSS(
"* img[tabindex=\"0\"] + div {\ntext-align:center\n}",
"* img + div {\ntext-align:center\n}"
);
}
The text was updated successfully, but these errors were encountered:
Hi 👋
We are using htmlpurifier for nextcloud/mail to sanitize the body of html messages and have a bug report that a mail is not rendered correctly (nextcloud/mail#5279).
I debugged the mail body and found that
* img[tabindex="0"] + div { text-align:center }
is rewritten to
* + div { text-align:center }
htmlpurifier/library/HTMLPurifier/Filter/ExtractStyleBlocks.php
Line 243 in c97bb93
A test case for
ExtractStyleBlocksTest
:The text was updated successfully, but these errors were encountered: