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
instags only atFlowlevel. - init_attrib_whitelist
-
Overriding init_attrib_whitelist() so that the filter will not allow
brtags to have theclearattribute. - init_attval_whitelist
-
Overriding init_attval_whitelist() so that the color value
pinkis replaced withblue. - init_style_whitelist
-
Overriding init_style_whitelist() so that the
background-colorstyle attribute is not allowed. - init_deinter_whitelist
-
Overriding init_deinter_whitelist() so that the
fonttag 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