Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
HTML::DOM::Element::TaUser3Contributed Perl DocumeHTML::DOM::Element::Table(3)

NAME
       HTML::DOM::Element::Table - A Perl class	for representing 'table'
       elements	in an HTML DOM tree

VERSION
       Version 0.057

SYNOPSIS
	 use HTML::DOM;
	 $doc =	HTML::DOM->new;
	 $elem = $doc->createElement('table');

	 $elem->tHead;
	 $elem->tBodies->[0];
	 $elem->createTFoot;
	 # etc

DESCRIPTION
       This class represents 'table' elements in an HTML::DOM tree. It
       implements the HTMLTableElement DOM interface and inherits from
       HTML::DOM::Element (q.v.).

METHODS
       In addition to those inherited from HTML::DOM::Element and its
       superclasses, this class	implements the following DOM methods:

       caption
       tHead
       tFoot
	   Each	of these returns the table's corresponding element, if it
	   exists, or an empty list otherwise.

       rows
	   Returns a collection	of all table row elements, or a	list in	list
	   context.

       tBodies
	   Returns a collection	of all 'tbody' elements, or a list in list
	   context.

       align
       bgColor
       border
       cellPadding
       cellSpacing
       frame
       rules
       summary
       width
	   These get (optionally set) the corresponding	HTML attributes.

       createTHead
	   Returns the table's 'thead' element,	creating it if it doesn't
	   exist.

       deleteTHead
	   Deletes the table's 'thead' element.

       createTFoot
	   Returns the table's 'tfoot' element,	creating it if it doesn't
	   exist.

       deleteTFoot
	   Does	what you would think.

       createCaption
	   Returns the table's 'caption' element, creating it if it doesn't
	   exist.

       deleteCaption
	   Deletes the caption.

       insertRow
	   Insert a new	'tr' element at	the index specified by the first
	   argument, and returns that new row.

       deleteRow
	   Deletes the row at the index	specified by the first arg.

SEE ALSO
       HTML::DOM

       HTML::DOM::Element

       HTML::DOM::Element::Caption

       HTML::DOM::Element::TableColumn

       HTML::DOM::Element::TableSection

       HTML::DOM::Element::TR

       HTML::DOM::Element::TableCell

perl v5.24.1			  2016-07-06	  HTML::DOM::Element::Table(3)

NAME | VERSION | SYNOPSIS | DESCRIPTION | METHODS | SEE ALSO

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=HTML::DOM::Element::Table&sektion=3&manpath=FreeBSD+12.0-RELEASE+and+Ports>

home | help