1
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2025-08-06 14:16:32 +02:00

Don't autoclose if no parents support the tag.

Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
This commit is contained in:
Edward Z. Yang
2011-03-22 00:26:41 +00:00
parent e05b555448
commit 6a6c0ed5d7
3 changed files with 90 additions and 22 deletions

View File

@@ -137,6 +137,13 @@ class HTMLPurifier_Strategy_MakeWellFormedTest extends HTMLPurifier_StrategyHarn
);
}
function testNoAutocloseIfNoParentsCanAccomodateTag() {
$this->assertResult(
'<table><tr><td><li>foo</li></td></tr></table>',
'<table><tr><td>foo</td></tr></table>'
);
}
}
// vim: et sw=4 sts=4