The manakai project

Web::DOM::HTMLInputElement

DOM HTMLInputElement object

DESCRIPTION

The Web::DOM::HTMLInputElement class implements the DOM HTMLInputElement interface. The class is used by HTML input elements.

METHODS

In addition to the methods available for classes Web::DOM::Element and Web::DOM::HTMLElement, the following methods are available:

$string = $el->accept
$el->accept ($string)

Return or set the accept attribute. [HTML]

$string = $el->alt
$el->alt ($string)

Return or set the alt attribute. [HTML]

$boolean = $el->autofocus
$el->autofocus ($boolean)

Return or set whether the autofocus attribute is specified or not. [HTML]

$boolean = $el->default_checked
$el->default_checked ($boolean)

Return or set whether the checked attribute is specified or not. [HTML]

$string = $el->default_value
$el->default_value ($string)

Return or set the value attribute. [HTML]

$string = $el->dirname
$el->dirname ($string)

Return or set the dirname attribute. [HTML]

$boolean = $el->disabled
$el->disabled ($boolean)

Return or set whether the disabled attribute is specified or not. [HTML]

$string = $el->formaction
$el->formaction ($string)

Return or set the fromaction attribute. [HTML]

$string = $el->formenctype
$el->formenctype ($string)

Return or set the formenctype attribute. [HTML]

$string = $el->formmethod
$el->formmethod ($string)

Return or set the formmethod attribute. [HTML]

$boolean = $el->formnovalidate
$el->formnovalidate ($boolean)

Return or set whether the formnovalidate attribute is specified or not. [HTML]

$string = $el->formtarget
$el->formtarget ($string)

Return or set the formtarget attribute. [HTML]

$el2 = $el->list

Return the datalist element for the element (as specified by the list content attribute), if any, or undef. [HTML]

$string = $el->max
$el->max ($string)

Return or set the max attribute. [HTML]

$integer = $el->maxlength
$el->maxlength ($integer)

Return or set the maxlength attribute. [HTML]

$string = $el->min
$el->min ($string)

Return or set the min attribute. [HTML]

$boolean = $el->multiple
$el->multiple ($boolean)

Return or set whether the multiple attribute is specified or not. [HTML]

$string = $el->name
$el->name ($string)

Return or set the name attribute. [HTML]

$string = $el->pattern
$el->pattern ($string)

Return or set the pattern attribute. [HTML]

$string = $el->placeholder
$el->placeholder ($string)

Return or set the placeholder attribute. [HTML]

$boolean = $el->readonly
$el->readonly ($boolean)

Return or set whether the readonly attribute is specified or not. [HTML]

$boolean = $el->required
$el->required ($boolean)

Return or set whether the required attribute is specified or not. [HTML]

$integer = $el->size
$el->size ($integer)

Return or set the size attribute. [HTML]

$string = $el->src
$el->src ($string)

Return or set the src attribute. [HTML]

$string = $el->step
$el->step ($string)

Return or set the step attribute. [HTML]

$string = $el->type
$el->type ($string)

Return or set the type attribute. [HTML]

Additionally, the following obsolete methods are available: align and usemap. [HTML]

SPECIFICATION

HTML

HTML Standard <http://www.whatwg.org/specs/web-apps/current-work/#the-input-element>.

SEE ALSO

Web::DOM::HTMLElement.

AUTHOR

Wakaba <wakaba@suikawiki.org>.

LICENSE

Copyright 2013-2018 Wakaba <wakaba@suikawiki.org>.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.