The manakai project

Web::DOM::HTMLOptionElement

The DOM HTMLOptionElement object

DESCRIPTION

The Web::DOM::HTMLOptionElement class implements the DOM HTMLOptionElement interface. The class is used by the HTML option element.

METHODS

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

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

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

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

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

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

Return or set the label of the element. [HTML]

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

Return or set the text content of the element. [HTML]

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

Return or set the value of the element. [HTML]

SPECIFICATION

HTML

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

SEE ALSO

Web::DOM::HTMLElement.

AUTHOR

Wakaba <wakaba@suikawiki.org>.

LICENSE

Copyright 2013 Wakaba <wakaba@suikawiki.org>.

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