![]() |
![]()
| ![]() |
![]()
NAMEHTML::DOM::Element - A Perl class for representing elements in an HTML DOM tree VERSIONVersion 0.058 SYNOPSISuse HTML::DOM; $doc = HTML::DOM->new; $elem = $doc->createElement('a'); $elem->setAttribute('href', 'http://www.perl.org/'); $elem->getAttribute('href'); $elem->tagName; # etc DESCRIPTIONThis class represents elements in an HTML::DOM tree. It is the base class for other element classes (see "CLASSES AND DOM INTERFACES" in HTML::DOM.) It implements the Element and HTMLElement DOM interfaces. METHODSConstructorYou should normally use HTML::DOM's "createElement" method. This is listed here only for completeness: $elem = new HTML::DOM::Element $tag_name; $elem will automatically be blessed into the appropriate class for $tag_name. AttributesThe following DOM attributes are supported:
And there is also the following non-DOM attribute:
Other Methods
SEE ALSOHTML::DOM HTML::DOM::Node HTML::Element All the HTML::DOM::Element subclasses listed under "CLASSES AND DOM INTERFACES" in HTML::DOM
|