NAME

HTML::HTML5::DOM::HTMLMediaElement - implementation of the HTMLMediaElement interface of the HTML DOM

DESCRIPTION

HTML::HTML5::DOM::HTMLMediaElement is an implementation of the HTMLMediaElement interface of the HTML DOM. See HTML::HTML5::DOM for a list of the conventions that have been used when translating the DOM to Perl.

HTML Elements

This class applies to the following HTML elements.

Inheritance

HTML::HTML5::DOM::HTMLMediaElement inherits methods from the following Perl classes.

Additional Methods

As well as its inherited methods, this class provides the following methods.

  • controls

    Called with no arguments, is a shortcut for $elem->getAttribute("controls"). Called with a defined argument, acts as setAttribute. Called with undef as an argument, acts as removeAttribute.

  • crossOrigin

    Called with no arguments, is a shortcut for $elem->getAttribute("crossorigin"). Called with a defined argument, acts as setAttribute. Called with undef as an argument, acts as removeAttribute.

  • preload

    Called with no arguments, is a shortcut for $elem->getAttribute("preload"). Called with a defined argument, acts as setAttribute. Called with undef as an argument, acts as removeAttribute.

  • src

    Shortcut for HTTP::Request->new(GET => $elem->href)

BUGS

http://rt.cpan.org/Dist/Display.html?Queue=HTML-HTML5-DOM.

SEE ALSO

HTML::HTML5::DOM.

AUTHOR

Toby Inkster <tobyink@cpan.org>.

COPYRIGHT AND LICENCE

This software is copyright (c) 2012, 2014 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.