NAME
HTML::HTML5::DOM::HTMLInputElement - implementation of the HTMLInputElement interface of the HTML DOM
DESCRIPTION
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.
HTML Elements
This class applies to the following HTML elements.
{http://www.w3.org/1999/xhtml}input
Inheritance
HTML::HTML5::DOM::HTMLInputElement inherits methods from the following Perl classes.
Additional Methods
As well as its inherited methods, this class provides the following methods.
acceptCalled with no arguments, is a shortcut for
$elem->getAttribute("accept"). Called with a defined argument, acts assetAttribute. Called with undef as an argument, acts asremoveAttribute.altCalled with no arguments, is a shortcut for
$elem->getAttribute("alt"). Called with a defined argument, acts assetAttribute. Called with undef as an argument, acts asremoveAttribute.autocompleteCalled with no arguments, is a shortcut for
$elem->getAttribute("autocomplete"). Called with a defined argument, acts assetAttribute. Called with undef as an argument, acts asremoveAttribute.autofocusCalled with no arguments, is a shortcut for
$elem->hasAttribute("autofocus"). If called with a true argument, willsetAttribute; if called with a false argument willremoveAttribute.checkedCalled with no arguments, is a shortcut for
$elem->hasAttribute("checked"). If called with a true argument, willsetAttribute; if called with a false argument willremoveAttribute.dirNameCalled with no arguments, is a shortcut for
$elem->getAttribute("dirname"). Called with a defined argument, acts assetAttribute. Called with undef as an argument, acts asremoveAttribute.formReturns the "formtarget" attribute for this element if it exists, or otherwise the "target" attribute of this element's form owner.
heightCalled with no arguments, is a shortcut for
$elem->getAttribute("height"). Called with a defined argument, acts assetAttribute. Called with undef as an argument, acts asremoveAttribute.labelsA list of
<label>elements which label this element.maxCalled with no arguments, is a shortcut for
$elem->getAttribute("max"). Called with a defined argument, acts assetAttribute. Called with undef as an argument, acts asremoveAttribute.maxLengthCalled with no arguments, is a shortcut for
$elem->getAttribute("maxlength"). Called with a defined argument, acts assetAttribute. Called with undef as an argument, acts asremoveAttribute.minCalled with no arguments, is a shortcut for
$elem->getAttribute("min"). Called with a defined argument, acts assetAttribute. Called with undef as an argument, acts asremoveAttribute.multipleCalled with no arguments, is a shortcut for
$elem->hasAttribute("multiple"). If called with a true argument, willsetAttribute; if called with a false argument willremoveAttribute.nameCalled with no arguments, is a shortcut for
$elem->getAttribute("name"). Called with a defined argument, acts assetAttribute. Called with undef as an argument, acts asremoveAttribute.p5_wwwFormPairReturns the
[$name => $value]that would be used when submitting this form element.patternCalled with no arguments, is a shortcut for
$elem->getAttribute("pattern"). Called with a defined argument, acts assetAttribute. Called with undef as an argument, acts asremoveAttribute.placeholderCalled with no arguments, is a shortcut for
$elem->getAttribute("placeholder"). Called with a defined argument, acts assetAttribute. Called with undef as an argument, acts asremoveAttribute.readOnlyCalled with no arguments, is a shortcut for
$elem->hasAttribute("readonly"). If called with a true argument, willsetAttribute; if called with a false argument willremoveAttribute.requiredCalled with no arguments, is a shortcut for
$elem->hasAttribute("required"). If called with a true argument, willsetAttribute; if called with a false argument willremoveAttribute.sizeCalled with no arguments, is a shortcut for
$elem->getAttribute("size"). Called with a defined argument, acts assetAttribute. Called with undef as an argument, acts asremoveAttribute.srcCalled with no arguments, is a shortcut for
$elem->getAttribute("src")but as a blessed URI object. Called with a defined argument, acts assetAttribute. Called with undef as an argument, acts asremoveAttribute.stepCalled with no arguments, is a shortcut for
$elem->getAttribute("step"). Called with a defined argument, acts assetAttribute. Called with undef as an argument, acts asremoveAttribute.typeCalled with no arguments, is a shortcut for
$elem->getAttribute("type"). Called with a defined argument, acts assetAttribute. Called with undef as an argument, acts asremoveAttribute.widthCalled with no arguments, is a shortcut for
$elem->getAttribute("width"). Called with a defined argument, acts assetAttribute. Called with undef as an argument, acts asremoveAttribute.
BUGS
http://rt.cpan.org/Dist/Display.html?Queue=HTML-HTML5-DOM.
SEE ALSO
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.