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>2018-09-27 17:00:54 +0300
committerAleksander Machniak <alec@alec.pl>2018-09-27 17:00:54 +0300
commit0a0ac045fe30b5f07d24e62581b37adc8a7ac4c7 (patch)
tree258713d170ced9aa67ebcc3a9dc033d5c03826b6 /tests
parentc1e8bd75c2c19b4389ad2e9dc81b4cd03406527c (diff)
Fix bug where valid content between HTML comments could have been skipped in some cases (#6464)
Diffstat (limited to 'tests')
-rw-r--r--tests/Framework/Washtml.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/Framework/Washtml.php b/tests/Framework/Washtml.php
index 9879575a8..eebd80de5 100644
--- a/tests/Framework/Washtml.php
+++ b/tests/Framework/Washtml.php
@@ -98,6 +98,11 @@ class Framework_Washtml extends PHPUnit_Framework_TestCase
$washed = $this->cleanupResult($washer->wash($html));
$this->assertEquals('<p>para1</p><p>para2</p>', $washed, "HTML comments - bracket inside");
+
+ $html = "<p><!-- span>1</span -->\n<span>2</span>\n<!-- >3</span --><span>4</span></p>";
+ $washed = $this->cleanupResult($washer->wash($html));
+
+ $this->assertEquals("<p>\n<span>2</span>\n<span>4</span></p>", $washed, "HTML comments (#6464)");
}
/**