summaryrefslogtreecommitdiff
path: root/tests/Framework
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:42:22 +0200
commitcb3e2fe0c2e36e0f41d93015fb1b604d195f9047 (patch)
tree5ac9a3c7f5422a94d0c582980f56a00d6e90b118 /tests/Framework
parent0279879871208acc68e97da5de367fd4175258c7 (diff)
Fix displaying messages with invalid self-closing HTML tags (#1489137)
Diffstat (limited to 'tests/Framework')
-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)");
+ }
+
}