0
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2024-12-23 08:51:53 +00:00
htmlpurifier/tests/HTMLPurifier/Strategy
Edward Z. Yang e013bc9126 Fix bug involving autoclose and inline elements in strict <blockquote>.
The newest autoclose code uses the elements property in whether or not an
element should be closed by a particular tag.  The heuristic is simple; if
the element doesn't allow that tag as a child, it closes the parent
container.  This doesn't work, however, with <blockquote>, which while not
allowing inline styles under Strict doctypes, requires them to be passed
through MakeWellFormed.

The fix was to transition MakeWellFormed to call a method to retrieve the
elements, and then have StrictBlockquote implement a special version of
this method.  Future versions of HTML Purifier may be more flexible in this
regard--further study of the HTML5 specification is required.

Signed-off-by: Edward Z. Yang <edwardzyang@thewritingpot.com>
2008-08-01 20:52:06 -04:00
..
CompositeTest.php - Removed tally(), swallowErrors(), assertNoErrors() 2008-04-14 03:06:36 +00:00
CoreTest.php Remove includes from unit tests. 2008-02-18 04:41:42 +00:00
ErrorsHarness.php Classname() constructors to __construct() constructors, as per SimpleTest. Also normalized ppp declarations; no public declaration for test methods, public/protected for the rest 2008-04-21 15:24:18 +00:00
FixNesting_ErrorsTest.php Classname() constructors to __construct() constructors, as per SimpleTest. Also normalized ppp declarations; no public declaration for test methods, public/protected for the rest 2008-04-21 15:24:18 +00:00
FixNestingTest.php Various fixes: 2008-04-15 03:33:09 +00:00
MakeWellFormed_ErrorsTest.php Classname() constructors to __construct() constructors, as per SimpleTest. Also normalized ppp declarations; no public declaration for test methods, public/protected for the rest 2008-04-21 15:24:18 +00:00
MakeWellFormed_InjectorTest.php Implement %AutoFormat.RemoveEmpty, end to start ref, and injector rewind. 2008-06-27 16:09:14 -04:00
MakeWellFormedTest.php Fix bug involving autoclose and inline elements in strict <blockquote>. 2008-08-01 20:52:06 -04:00
RemoveForeignElements_ErrorsTest.php [3.1.2] Implement comments when %HTML.Trusted is on. 2008-06-25 23:12:19 -04:00
RemoveForeignElements_TidyTest.php Handle CRLF discrepancies 2008-06-24 21:10:51 -04:00
RemoveForeignElementsTest.php [3.1.2] Implement comments when %HTML.Trusted is on. 2008-06-25 23:12:19 -04:00
ValidateAttributes_IDTest.php Handle CRLF discrepancies 2008-06-24 21:10:51 -04:00
ValidateAttributes_TidyTest.php Handle CRLF discrepancies 2008-06-24 21:10:51 -04:00
ValidateAttributesTest.php [3.1.1] Round up imagecrash support with HTML.MaxImgLength 2008-05-23 02:09:43 +00:00