![]() |
![]()
| ![]() |
![]()
NAMEHTML::DOM::Attr - A Perl class for representing attribute nodes in an HTML DOM tree VERSIONVersion 0.058 SYNOPSISuse HTML::DOM; $doc = HTML::DOM->new; $attr = $doc->createAttribute('href'); $attr->nodeValue('http://localhost/'); $elem = $doc->createElement('a'); $elem->setAttributeNode($attr); $attr->nodeName; # href $attr->nodeValue; # http://... $attr->firstChild; # a text node $attr->ownerElement; # returns $elem DESCRIPTIONThis class is used for attribute nodes in an HTML::DOM tree. It implements the Node and Attr DOM interfaces and inherits from HTML::DOM::EventTarget. An attribute node stringifies to its value. As a boolean it is true, even if its value is false. METHODSAttributesThe following DOM attributes are supported:
Other Methods
SEE ALSOHTML::DOM HTML::DOM::Node HTML::DOM::Element HTML::DOM::EventTarget
|