Fix broken trusted comments functionality.
commit07ed1bbf8c3daaab3cd9b358c064b2d8b8d29108
authorEdward Z. Yang <edwardzyang@thewritingpot.com>
Thu, 5 Feb 2009 23:04:10 +0000 (5 18:04 -0500)
committerEdward Z. Yang <edwardzyang@thewritingpot.com>
Thu, 5 Feb 2009 23:04:10 +0000 (5 18:04 -0500)
treed5d31297f8c12d449b6411fd277033ee56a384f6
parentb9094d5ec8b45c249bb14f245ffa96dee802779f
Fix broken trusted comments functionality.

This fix is slightly hackish, as we simply treat comments as whitespace.
This should largely be correct, and breaks no current test cases,
although it could result in noncompliant behavior.

Signed-off-by: Edward Z. Yang <edwardzyang@thewritingpot.com>
library/HTMLPurifier/ChildDef/Table.php
library/HTMLPurifier/Token/Comment.php
tests/HTMLPurifier/HTMLT/trusted-comments-required.htmlt [new file with mode: 0644]
tests/HTMLPurifier/HTMLT/trusted-comments-table.htmlt [new file with mode: 0644]
tests/HTMLPurifier/HTMLT/trusted-comments.htmlt [new file with mode: 0644]