Refine Lexers for parsing stray angled brackets; %Core.AggressivelyFixLt = true
commitaa0fdeee3082c2ddd123fb248f238800b38f77aa
authorEdward Z. Yang <edwardzyang@thewritingpot.com>
Sat, 28 Jun 2008 04:43:02 +0000 (28 00:43 -0400)
committerEdward Z. Yang <edwardzyang@thewritingpot.com>
Mon, 7 Jul 2008 12:52:29 +0000 (7 08:52 -0400)
treeee84586ebbe44c63f099dec665d71559d2890f69
parentba418a1f19cb352a64977c2908a0992178250de5
Refine Lexers for parsing stray angled brackets; %Core.AggressivelyFixLt = true

By default, the DirectLex and DOMLex behavior with stray angled brackets
varied a great deal due to their implementations. A little known directive
%Core.AggressivelyFixLt attempted to match DOMLex's behavior with DirectLex's,
but it was off by default. By turning it on by default, users now enjoy these
benefits, and performance-minded users can turn it back off.

Also, several refinements to stray angled bracket parsing was made. Specifically:

* DirectLex: Handle each left angled bracket individually, which prevents
  strange behavior as reported by eon.
* DOMLex: Iterate aggressive lt fix, so that stacked brackets like << are
  handled.

Signed-off-by: Edward Z. Yang <edwardzyang@thewritingpot.com>
NEWS
configdoc/usage.xml
library/HTMLPurifier/ConfigSchema/schema.ser
library/HTMLPurifier/ConfigSchema/schema/Core.AggressivelyFixLt.txt
library/HTMLPurifier/Lexer/DOMLex.php
library/HTMLPurifier/Lexer/DirectLex.php
tests/HTMLPurifier/LexerTest.php