HTML::HTML5::DOM::HTMLScriptElement - implementation of the HTMLScriptElement interface of the HTML DOM
HTML::HTML5::DOM::HTMLScriptElement is an implementation of the HTMLScriptElement 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.
This class applies to the following HTML elements.
{http://www.w3.org/1999/xhtml}script
HTML::HTML5::DOM::HTMLScriptElement inherits methods from the following Perl classes.
HTML::HTML5::DOM::HTMLElement
XML::LibXML::Augment::Element
XML::LibXML::Augment::Node
XML::LibXML::Element
XML::LibXML::Node
XML::LibXML::QuerySelector
HTML::HTML5::DOMutil::FancyISA
As well as its inherited methods, this class provides the following methods.
async
Called with no arguments, is a shortcut for $elem->hasAttribute("async"). If called with a true argument, will setAttribute; if called with a false argument will removeAttribute.
$elem->hasAttribute("async")
setAttribute
removeAttribute
charset
Called with no arguments, is a shortcut for $elem->getAttribute("charset"). Called with a defined argument, acts as setAttribute. Called with undef as an argument, acts as removeAttribute.
$elem->getAttribute("charset")
defer
Called with no arguments, is a shortcut for $elem->hasAttribute("defer"). If called with a true argument, will setAttribute; if called with a false argument will removeAttribute.
$elem->hasAttribute("defer")
src
Called with no arguments, is a shortcut for $elem->getAttribute("src") but as a blessed URI object. Called with a defined argument, acts as setAttribute. Called with undef as an argument, acts as removeAttribute.
$elem->getAttribute("src")
text
Called with no arguments, acts as an alias for $elem->textContent. Called with an arguments, sets the content for the element. Any existing content will be overwritten. If multiple arguments are provided, they'll be joined using "\n".
$elem->textContent
type
Called with no arguments, is a shortcut for $elem->getAttribute("type"). Called with a defined argument, acts as setAttribute. Called with undef as an argument, acts as removeAttribute.
$elem->getAttribute("type")
http://rt.cpan.org/Dist/Display.html?Queue=HTML-HTML5-DOM.
HTML::HTML5::DOM.
Toby Inkster <tobyink@cpan.org>.
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.
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.
To install HTML::HTML5::DOM, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTML::HTML5::DOM
CPAN shell
perl -MCPAN -e shell install HTML::HTML5::DOM
For more information on module installation, please visit the detailed CPAN module installation guide.