NAME HTML::Zoom::Parser::HH5P - use HTML::HTML5::Parser with HTML::Zoom SYNOPSIS use HTML::Zoom; use HTML::Zoom::Parser::HH5P; my $template = < HTML my $output = HTML::Zoom -> new({ zconfig => { parser => 'HTML::Zoom::Parser::HH5P' } }) -> from_html($template) -> to_html; DESCRIPTION "HTML::Zoom::Parser::HH5P" is glue between HTML::Zoom and HTML::HTML5::Parser. It is likely to be slower than HTML::Zoom's built in parser and HTML::Zoom::Parser::HTML::Parser, but because HTML::HTML5::Parser uses the HTML5 parsing algorithm, should handle malformed HTML in a manner more consistent with popular desktop web browsers. Constructor "new(%attributes)" Moose/Moo-style constructor function. Attributes "zconfig" Holds an HTML::Zoom::ZConfig object. Read-only attribute, but a separate "with_zconfig" method id provided to set the zconfig attribute. "parse_as_fragment" Tri-state variable. If set to false, then all HTML parsed with this object will be be treated as full HTML documents. Missing optional tags such as "" and "" will be inferred and added to the stream as required by the HTML5 specification. If set to true, then all HTML parsed with the object will be treated as document fragments. If undefined (the default), then this module will attempt to guess the correct behaviour. The current guessing heuristic is a case-insensitive search for ". SEE ALSO HTML::Zoom, HTML::HTML5::Parser. AUTHOR Toby Inkster . COPYRIGHT AND LICENCE This software is copyright (c) 2012 by Toby Inkster. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. DISCLAIMER OF WARRANTIES THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.