Whatpm::WebVTT::Checker - A WebVTT conformance checker
use Whatpm::WebVTT::Checker; $checker = Whatpm::WebVTT::Checker->new; $checker->onerror ($error_handler); $checker->check_track ($track);
The Whatpm::WebVTT::Checker
module, in conjunction with
the Whatpm::WebVTT::Parser manpage, forms a conformance checker for WebVTT.
Following methods can be used to check the conformance of WebVTT documents:
Return a new instance of the WebVTT checker.
Get or set the error handler. See the Whatpm::Errors manpage for more information.
Check a TextTrack
(the Message::DOM::TextTrack manpage) object representing
a WebVTT file. Any conformance error is reported via the error
handler specified to the onerror
attribute.
In addition, following methodis provided as lower-level APIs of the
parser: check_text_document_fragment
.
WebVTT Standard <http://dev.w3.org/html5/webvtt/>.
HTML Standard, Text Track API <http://www.whatwg.org/specs/web-apps/current-work/#text-track-api>.
the Message::DOM::TextTrack manpage.
the Whatpm::WebVTT::Parser manpage.
Wakaba <w@suika.fam.cx>.
Copyright 2012 Wakaba <w@suika.fam.cx>.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.