|
NAMEHTML::DOM::NodeList::Radio - A Perl class for representing lists of radio buttons in an HTML DOM tree VERSIONVersion 0.054 SYNOPSIS use HTML::DOM;
$doc = HTML::DOM->new;
$doc->write('
<form>
<input name=r type=radio value=one>
<input name=r type=radio value=two>
</form>
');
$doc->close;
$radio_list = $doc->forms->[0]->find_input('r');
# returns an HTML::DOM::NodeList::Radio object
$radio_list->[0]; # get first button
$radio_list->item(0); # same
# also:
$radio_list->value('two'); # select a radio button
$radio-list->name; # returns 'r'
DESCRIPTIONAn object of this class represents a list of radio buttons in an HTML::DOM tree. This class inherits from HTML::DOM::NodeList:: and is provided solely for compatibility with WWW::Mechanize. METHODSIn addition to those inherited from HTML::DOM::NodeList, this class implements the following methods:
SEE ALSOHTML::DOM HTML::DOM::NodeList HTML::DOM::Collection::Elements HTML::DOM::Element::Form The source of HTML/DOM/Element/Form.pm, where this is implemented.
|