The manakai project

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 caption element for the table. [HTML]

$caption = $el->create_caption

Return the caption element for the table. If the table does not contain the caption element, a new element is created and returned. [HTML]

$tbody = $el->create_tbody

Create a new tbody element, insert it after the last tbody element (or the end of the table), and return it. [HTML]

$thead = $el->create_tfoot

Return the tfoot element for the table. If the table does not contain the tfoot element, a new element is created and returned. [HTML]

$thead = $el->create_thead

Return the thead element for the table. If the table does not contain the thead element, a new element is created and returned. [HTML]

$el->delete_caption

Remove the caption element from the table, if any. [HTML]

$el->delete_row ($index)

Return the table row (tr element) with the specified index in the table. [HTML]

$el->delete_tfoot

Remove the tfoot element from the table, if any. [HTML]

$el->delete_thead

Remove the thead element from the table, if any. [HTML]

$tr = $el->insert_row ($index)

Insert a table row (tr element) at the specified postion in the table and return the element. [HTML]

$col = $el->rows

Return the Web::DOM::HTMLCollection containing the rows (tr elements) of the table. [HTML]

$col = $el->tbodies

Return the Web::DOM::HTMLCollection containing the tbody children of the element. [HTML]

$tfoot = $el->tfoot
$el->tfoot ($tfoot)

Return or set the tfoot element for the table. [HTML]

$thead = $el->thead
$el->thead ($thead)

Return or set the thead element 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

Web::DOM::HTMLElement.

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.