Migrate AttrValidator to nested error format; modify generator logic in ErrorCollector.
commitd9e60350d388e7a8c7db1e402e871ebcbe9fca26
authorEdward Z. Yang <edwardzyang@thewritingpot.com>
Tue, 19 Aug 2008 02:13:58 +0000 (18 22:13 -0400)
committerEdward Z. Yang <edwardzyang@thewritingpot.com>
Tue, 19 Aug 2008 02:13:58 +0000 (18 22:13 -0400)
tree7f9c23e72688a86bb08dc34e87fda0ebb47c7b06
parentc807ed5fe23ebb23759a0c4d2c248c1a4a69fbc9
Migrate AttrValidator to nested error format; modify generator logic in ErrorCollector.

AttrValidator's changes are fairly self-explanatory, but ErrorCollector's
changes are worth a little discussion.  ErrorCollector can use generators at
various points during its flow control; there are two distinct generators that
it should use: 1. The one used for the output, and 2. The one used for the
error output.  These will usually be the same, but in the odd case where they
need to be different, getHTMLFormatted() will accept an alterate configuration
object with an appropriate doctype.

Signed-off-by: Edward Z. Yang <edwardzyang@thewritingpot.com>
library/HTMLPurifier/AttrValidator.php
library/HTMLPurifier/ErrorCollector.php
tests/HTMLPurifier/AttrValidator_ErrorsTest.php