HTML::Parse and comment removal

Chris Fedde (cfedde@loupe.ezsrc.mrg.uswest.com)
Thu, 28 Sep 1995 02:50:45 -0600


Why does the HTML::Parse module throw away comments?  I'd like to
use it to validate server side include files (.shtml) which use a
comment like marker to encode server parsing directives.  But since
the parse_html subroutine drops all comments, my script cannot
process these directives.  The obvious hack of removing the comment
handler in parse_html is only a partial solution as this causes
extra <P> tags in inconveniant places when passed to HTML::Element::asHTML.

Thanks
chris