HTML::HTML5::DOM::HTMLInputElement - implementation of the HTMLInputElement interface of the HTML DOM
HTML::HTML5::DOM::HTMLInputElement is an implementation of the HTMLInputElement 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}input
HTML::HTML5::DOM::HTMLInputElement 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.
accept
Called with no arguments, is a shortcut for $elem->getAttribute("accept"). Called with a defined argument, acts as setAttribute. Called with undef as an argument, acts as removeAttribute.
$elem->getAttribute("accept")
setAttribute
removeAttribute
alt
Called with no arguments, is a shortcut for $elem->getAttribute("alt"). Called with a defined argument, acts as setAttribute. Called with undef as an argument, acts as removeAttribute.
$elem->getAttribute("alt")
autocomplete
Called with no arguments, is a shortcut for $elem->getAttribute("autocomplete"). Called with a defined argument, acts as setAttribute. Called with undef as an argument, acts as removeAttribute.
$elem->getAttribute("autocomplete")
autofocus
Called with no arguments, is a shortcut for $elem->hasAttribute("autofocus"). If called with a true argument, will setAttribute; if called with a false argument will removeAttribute.
$elem->hasAttribute("autofocus")
checked
Called with no arguments, is a shortcut for $elem->hasAttribute("checked"). If called with a true argument, will setAttribute; if called with a false argument will removeAttribute.
$elem->hasAttribute("checked")
dirName
Called with no arguments, is a shortcut for $elem->getAttribute("dirname"). Called with a defined argument, acts as setAttribute. Called with undef as an argument, acts as removeAttribute.
$elem->getAttribute("dirname")
form
Returns the "formtarget" attribute for this element if it exists, or otherwise the "target" attribute of this element's form owner.
height
Called with no arguments, is a shortcut for $elem->getAttribute("height"). Called with a defined argument, acts as setAttribute. Called with undef as an argument, acts as removeAttribute.
$elem->getAttribute("height")
labels
A list of <label> elements which label this element.
<label>
max
Called with no arguments, is a shortcut for $elem->getAttribute("max"). Called with a defined argument, acts as setAttribute. Called with undef as an argument, acts as removeAttribute.
$elem->getAttribute("max")
maxLength
Called with no arguments, is a shortcut for $elem->getAttribute("maxlength"). Called with a defined argument, acts as setAttribute. Called with undef as an argument, acts as removeAttribute.
$elem->getAttribute("maxlength")
min
Called with no arguments, is a shortcut for $elem->getAttribute("min"). Called with a defined argument, acts as setAttribute. Called with undef as an argument, acts as removeAttribute.
$elem->getAttribute("min")
multiple
Called with no arguments, is a shortcut for $elem->hasAttribute("multiple"). If called with a true argument, will setAttribute; if called with a false argument will removeAttribute.
$elem->hasAttribute("multiple")
name
Called with no arguments, is a shortcut for $elem->getAttribute("name"). Called with a defined argument, acts as setAttribute. Called with undef as an argument, acts as removeAttribute.
$elem->getAttribute("name")
p5_wwwFormPair
Returns the [$name => $value] that would be used when submitting this form element.
[$name => $value]
pattern
Called with no arguments, is a shortcut for $elem->getAttribute("pattern"). Called with a defined argument, acts as setAttribute. Called with undef as an argument, acts as removeAttribute.
$elem->getAttribute("pattern")
placeholder
Called with no arguments, is a shortcut for $elem->getAttribute("placeholder"). Called with a defined argument, acts as setAttribute. Called with undef as an argument, acts as removeAttribute.
$elem->getAttribute("placeholder")
readOnly
Called with no arguments, is a shortcut for $elem->hasAttribute("readonly"). If called with a true argument, will setAttribute; if called with a false argument will removeAttribute.
$elem->hasAttribute("readonly")
required
Called with no arguments, is a shortcut for $elem->hasAttribute("required"). If called with a true argument, will setAttribute; if called with a false argument will removeAttribute.
$elem->hasAttribute("required")
size
Called with no arguments, is a shortcut for $elem->getAttribute("size"). Called with a defined argument, acts as setAttribute. Called with undef as an argument, acts as removeAttribute.
$elem->getAttribute("size")
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")
step
Called with no arguments, is a shortcut for $elem->getAttribute("step"). Called with a defined argument, acts as setAttribute. Called with undef as an argument, acts as removeAttribute.
$elem->getAttribute("step")
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")
width
Called with no arguments, is a shortcut for $elem->getAttribute("width"). Called with a defined argument, acts as setAttribute. Called with undef as an argument, acts as removeAttribute.
$elem->getAttribute("width")
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.