mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-07-12 02:06:18 +02:00
Fix bug involving whitespace-only nodes. Thanks Eric Wald for reporting.
Signed-off-by: Edward Z. Yang <edwardzyang@thewritingpot.com>
This commit is contained in:
@ -20,5 +20,12 @@ class HTMLPurifier_ChildDef_OptionalTest extends HTMLPurifier_ChildDefHarness
|
||||
$this->assertResult('');
|
||||
}
|
||||
|
||||
function testWhitespace() {
|
||||
$this->assertResult(' ');
|
||||
}
|
||||
|
||||
function testMultipleWhitespace() {
|
||||
$this->assertResult(' ');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user