mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-07-31 03:10:09 +02:00
Fixed Issue #264: <thead> element removed from <table> if there are no <tbody> or <tr> elements (#283)
This commit is contained in:
@@ -44,6 +44,22 @@ class HTMLPurifier_ChildDef_TableTest extends HTMLPurifier_ChildDefHarness
|
||||
);
|
||||
}
|
||||
|
||||
public function testTheadOnlyNotRemoved()
|
||||
{
|
||||
$this->assertResult(
|
||||
'<thead><tr><th>a</th></tr></thead>',
|
||||
'<thead><tr><th>a</th></tr></thead>'
|
||||
);
|
||||
}
|
||||
|
||||
public function testTbodyOnlyNotRemoved()
|
||||
{
|
||||
$this->assertResult(
|
||||
'<tbody><tr><th>a</th></tr></tbody>',
|
||||
'<tbody><tr><th>a</th></tr></tbody>'
|
||||
);
|
||||
}
|
||||
|
||||
public function testTrOverflowAndClose()
|
||||
{
|
||||
$this->assertResult(
|
||||
|
Reference in New Issue
Block a user