The manakai project

Web::DOM::HTMLTableCellElement

DOM HTMLTableCellElement object

DESCRIPTION

The Web::DOM::HTMLTableCellElement class implements the DOM HTMLTableCellElement interface. The class is used by the HTML td and th elements.

METHODS

In addition to the methods available for classes Web::DOM::Element and Web::DOM::HTMLElement, the following methods are available:

$string = $el->abbr
$el->abbr ($string)

Return or set the abbr attribute. [HTML]

$index = $el->cell_index

Return the index of the cell in the list of the cells anchored in the table row. [HTML]

Please note that the cell index might not be equal to the column index in the table to which the cell belongs when there are colspaned cells.

$integer = $el->colspan
$el->colspan ($integer)

Return or set the colspan attribute. [HTML]

$string = $el->headers
$el->headers ($string)

Return or set the headers attribute. [HTML]

$integer = $el->rowspan
$el->rowspan ($integer)

Return or set the rowspan attribute. [HTML]

$string = $el->scope
$el->scope ($string)

Return or set the scope attribute. [HTML]

Additionally, the following obsolete methods are available: align, axis, bgcolor, ch, ch_off, height, nowrap, valign, and width. [HTML]

SPECIFICATION

HTML

HTML Standard <https://www.whatwg.org/specs/web-apps/current-work/#attributes-common-to-td-and-th-elements>.

SEE ALSO

Web::DOM::HTMLElement, Web::DOM::HTMLTableDataCellElement, Web::DOM::HTML::TableHeaderCellElement.

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.