Subject: | Presumed mistake in README; possible bug in test suite or in code as well. |
Hello.
First off I'd just like to point out what I believe is a mistake in the README file of HTML::Sanitizer 0.4. Specificially, it says:
This module requires these other modules and libraries:
HTML::TreeParser
I believe that should be HTML::TreeBuilder and/or HTML::Parser. I was unable to find a module named HTML::TreeParser.
The next thing appears to be a bug but I'm just starting to investigate. When I run make test I get this failure:
t/03security.....# Failed test (t/03security.t at line 35)
# got: '<p>unsafe</p>'
# expected: '<p>unsafe</p><script'
# Failed test (t/03security.t at line 40)
# got: ''
# expected: '<p attr_ok="test>unsafe</p>'
# Looks like you failed 2 tests of 4.
t/03security.....dubious
Test returned status 2 (wstat 512, 0x200)
DIED. FAILED tests 3-4
I believe everything is up-to-date and happy with my Perl installation. This was using Perl 5.8.4 on Red Hat Linux 9, built from source, with all other modules installed via CPAN.
Cheers.
- K. Frost