diff --git a/tests/HTMLPurifier/HTMLModule/HTML5/HypertextTest.php b/tests/HTMLPurifier/HTMLModule/HTML5/HypertextTest.php index f1a1eb0..56892aa 100644 --- a/tests/HTMLPurifier/HTMLModule/HTML5/HypertextTest.php +++ b/tests/HTMLPurifier/HTMLModule/HTML5/HypertextTest.php @@ -65,4 +65,22 @@ public function testAnchor($input, $expected = null) $this->assertPurification($input, $expected); } + + /** + * @see https://github.com/xemlock/htmlpurifier-html5/issues/51 + */ + public function testIssue51_() + { + $this->config->autoFinalize = false; + + $this->assertPurification( + '
Foo
', + '
Foo
' + ); + + $this->config->set('Core.LexerImpl', 'DirectLex'); + $this->assertPurification( + '
Foo
' + ); + } }