Web::DOM::HTMLTableElement
DOM HTMLTableElement object
DESCRIPTION
The Web::DOM::HTMLTableElement class implements the DOM HTMLTableElement interface.
The class is used by the HTML table element.
METHODS
In addition to the methods available for classes Web::DOM::Element and Web::DOM::HTMLElement, the following methods are available:
$caption = $el->caption$el->caption ($caption)-
Return or set the
captionelement for the table. [HTML] $caption = $el->create_caption-
Return the
captionelement for the table. If the table does not contain thecaptionelement, a new element is created and returned. [HTML] $tbody = $el->create_tbody-
Create a new
tbodyelement, insert it after the lasttbodyelement (or the end of the table), and return it. [HTML] $thead = $el->create_tfoot-
Return the
tfootelement for the table. If the table does not contain thetfootelement, a new element is created and returned. [HTML] $thead = $el->create_thead-
Return the
theadelement for the table. If the table does not contain thetheadelement, a new element is created and returned. [HTML] $el->delete_caption-
Remove the
captionelement from the table, if any. [HTML] $el->delete_row ($index)-
Return the table row (
trelement) with the specified index in the table. [HTML] $el->delete_tfoot-
Remove the
tfootelement from the table, if any. [HTML] $el->delete_thead-
Remove the
theadelement from the table, if any. [HTML] $tr = $el->insert_row ($index)-
Insert a table row (
trelement) at the specified postion in the table and return the element. [HTML] $col = $el->rows-
Return the Web::DOM::HTMLCollection containing the rows (
trelements) of the table. [HTML] $col = $el->tbodies-
Return the Web::DOM::HTMLCollection containing the
tbodychildren of the element. [HTML] $tfoot = $el->tfoot$el->tfoot ($tfoot)-
Return or set the
tfootelement for the table. [HTML] $thead = $el->thead$el->thead ($thead)-
Return or set the
theadelement for the table. [HTML]
Additionally,
the following obsolete methods are available: align,
bgcolor,
border,
cellpadding,
cellspacing,
frame,
summary,
rules,
and width. [HTML]
SPECIFICATION
- HTML
-
HTML Standard
<http://www.whatwg.org/specs/web-apps/current-work/#the-table-element>.
SEE ALSO
AUTHOR
Wakaba <wakaba@suikawiki.org>.
LICENSE
Copyright 2013-2016 Wakaba <wakaba@suikawiki.org>.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.