name

t/30subclass.t - HTML::StripScripts subclassing test script

DESCRIPTION

This file is part of the reggression test suite of HTML::StripScripts, testing that subclassing works as documented. This file also serves as a set of examples of subclassing HTML::StripScripts.

TESTS

output_start_document

Overriding output_start_document() to prepend an HTML comment.

output_end_document

Overriding output_end_document() to apend an HTML comment.

output_start

Overriding output_start() to convert start tags to upper case

output_text

Overriding output_text() to convert text to upper case

output_end

Overriding output_end() to convert end tags to upper case

output

Overriding output() to convert all output to upper case

reject_start

Overriding reject_start() so that rejected start tags are escaped rather than replaced with HTML comments.

reject_end

Overriding reject_end() so that rejected end tags are escaped rather than replaced with HTML comments.

reject_text

Overriding reject_text() so that rejected non-tag text is replaced with a different HTML comment than the default.

reject_decalaration

Overriding reject_decalaration() so that rejected declarations are replaced with custom text.

reject_comment

Overriding reject_comment() so that rejected HTML comments are replaced with custom text.

reject_process

Overriding reject_process() so that rejected processing instructions are replaced with custom text.

init_context_whitelist

Overriding init_context_whitelist() so that the filter will allow ins tags only at Flow level.

init_attrib_whitelist

Overriding init_attrib_whitelist() so that the filter will not allow br tags to have the clear attribute.

init_attval_whitelist

Overriding init_attval_whitelist() so that the color value pink is replaced with blue.

init_style_whitelist

Overriding init_style_whitelist() so that the background-color style attribute is not allowed.

init_deinter_whitelist

Overriding init_deinter_whitelist() so that the font tag will not be autodeinterleaved.

validate_href_attribute

Overriding validate_href_attribute() so that relative as well as absolute links will be accepted.

filter_text

Overriding filter_text() to convert text to upper case

escape_html_metachars

Overriding escape_html_metachars() to convert escape more aggressively

strip_nonprintable

Overriding strip_nonprintable() to strip more aggressively