summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-05-31 15:42:22 +0200
committerAleksander Machniak <alec@alec.pl>2013-05-31 15:43:03 +0200
commit1fe7d6ad75d2a5a2ab72a24de8cd8cdb341cff0e (patch)
tree04815be94b1ab2ca7b8e156f23994a05c9ffb873 /tests
parentf5fac810dd2b9276994585789cc68f71c4cd4cd3 (diff)
Fix displaying messages with invalid self-closing HTML tags (#1489137)
Diffstat (limited to 'tests')
-rw-r--r--tests/Framework/Washtml.php13
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)");
+ }
+
}