Skip to content

Commit

Permalink
Fix tests on Travis CI PHP 5.6
Browse files Browse the repository at this point in the history
  • Loading branch information
xemlock committed Dec 10, 2019
1 parent 840aed3 commit 1d579ee
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tests/HTMLPurifier/HTMLModule/HTML5/HypertextTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
'<a><table><tr><td>Foo</td></tr></table></a>',
'<a></a><table><tr><td>Foo</td></tr></table>'
);

$this->config->set('Core.LexerImpl', 'DirectLex');
$this->assertPurification(
'<a><table><tr><td>Foo</td></tr></table></a>'
);
}
}

0 comments on commit 1d579ee

Please sign in to comment.