Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/roundcube/roundcubemail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2019-04-28 13:43:10 +0300
committerAleksander Machniak <alec@alec.pl>2019-04-28 13:43:10 +0300
commit55cca611345b13f32b07b53c93834058b716ff2e (patch)
tree122b1b3940ad21794ab67647bd058c89bb7da81e /tests
parent07d4996825185c5a4e631640a6d2c32bd50a0bf6 (diff)
Workaround more invalid HTML cases parsed incorrectly by Mastermind/HTML5 (#6713)
Diffstat (limited to 'tests')
-rw-r--r--tests/Framework/Washtml.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/Framework/Washtml.php b/tests/Framework/Washtml.php
index 1e66c809e..2ffebec27 100644
--- a/tests/Framework/Washtml.php
+++ b/tests/Framework/Washtml.php
@@ -471,5 +471,17 @@ class Framework_Washtml extends PHPUnit_Framework_TestCase
$washed = $washer->wash($html);
$this->assertContains('First line', $washed);
+
+ // Not really valid HTML, but because its common in email world
+ // and because it works with DOMDocument, we make sure its supported
+ $html = 'First line<br /><html><body>Second line';
+ $washed = $washer->wash($html);
+
+ $this->assertContains('First line', $washed);
+
+ $html = 'First line<br /><html>Second line';
+ $washed = $washer->wash($html);
+
+ $this->assertContains('First line', $washed);
}
}