diff options
author | Aleksander Machniak <alec@alec.pl> | 2019-04-28 13:43:10 +0300 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2019-04-28 13:43:10 +0300 |
commit | 55cca611345b13f32b07b53c93834058b716ff2e (patch) | |
tree | 122b1b3940ad21794ab67647bd058c89bb7da81e /tests | |
parent | 07d4996825185c5a4e631640a6d2c32bd50a0bf6 (diff) |
Workaround more invalid HTML cases parsed incorrectly by Mastermind/HTML5 (#6713)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Framework/Washtml.php | 12 |
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); } } |