1
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2025-07-31 03:10:09 +02:00

All values, including empty, are valid HTML bools.

Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
This commit is contained in:
Edward Z. Yang
2015-02-11 16:36:44 -08:00
parent 0c3e68dd03
commit c67e4c2f7e
3 changed files with 3 additions and 4 deletions

View File

@@ -7,7 +7,7 @@ class HTMLPurifier_AttrDef_HTML_BoolTest extends HTMLPurifier_AttrDefHarness
{
$this->def = new HTMLPurifier_AttrDef_HTML_Bool('foo');
$this->assertDef('foo');
$this->assertDef('', false);
$this->assertDef('', 'foo');
$this->assertDef('bar', 'foo');
}