diff options
author | Aleksander Machniak <alec@alec.pl> | 2013-05-31 15:42:22 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2013-05-31 15:43:03 +0200 |
commit | 1fe7d6ad75d2a5a2ab72a24de8cd8cdb341cff0e (patch) | |
tree | 04815be94b1ab2ca7b8e156f23994a05c9ffb873 /tests | |
parent | f5fac810dd2b9276994585789cc68f71c4cd4cd3 (diff) |
Fix displaying messages with invalid self-closing HTML tags (#1489137)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Framework/Washtml.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/Framework/Washtml.php b/tests/Framework/Washtml.php index 526b93301..cb7234314 100644 --- a/tests/Framework/Washtml.php +++ b/tests/Framework/Washtml.php @@ -55,4 +55,17 @@ class Framework_Washtml extends PHPUnit_Framework_TestCase $this->assertEquals('<!-- html ignored --><!-- body ignored --><p>test</p>', $washed, "HTML invalid comments (#1487759)"); } + /** + * Test fixing of invalid self-closing elements (#1489137) + */ + function test_self_closing() + { + $html = "<textarea>test"; + + $washer = new rcube_washtml; + $washed = $washer->wash($html); + + $this->assertRegExp('|<textarea>test</textarea>|', $washed, "Self-closing textarea (#1489137)"); + } + } |