HTML::O...ableCol(3)
π NAME π
Okay so bestie, meet HTML::Object::DOM::Element::TableCol β the HTML Object DOM TableCol Class. It lives under User Contributed Perl Documentation, and in your terminal the header is the cute little HTML::O...ableCol(3). Table-column niche? Maybe. Main character energy? Absolutely. π
β¨ SYNOPSIS β¨
Here's the starter pack, copy-paste style:
use HTML::Object::DOM::Element::TableCol;
my $col = HTML::Object::DOM::Element::TableCol->new ||
die( HTML::Object::DOM::Element::TableCol->error, "\n" );
β VERSION β
v0.2.0 β that's the version, bestie. Periodt.
πΈ DESCRIPTION πΈ
Quick vibe check: this interface gives you special properties β beyond what the HTML::Object::DOM::Element interface gives you through inheritance β for manipulating single or grouped table column elements using the colgroup or col HTML tag.
The <colgroup> HTML element defines a group of columns within a table. The <col> HTML element defines a column within a table, and it's used for defining common semantics on all common cells. It's generally found within a <colgroup> element.
Here's the example, exactly as given:
<table>
<colgroup span="4">Countries information</colgroup>
<col>
<col class="economic">
<col span="2" class="people">
</colgroup>
<tr>
<th>Countries</th>
<th>Capitals</th>
<th>Population</th>
<th>Language</th>
</tr>
<tr>
<td>Japan</td>
<td>Tokyo</td>
<td>126 million</td>
<td>Japanese</td>
</tr>
<tr>
<td>Taiwan</td>
<td>Taipei</td>
<td>23 million</td>
<td>Traditional Chinese</td>
</tr>
</table>
𧬠INHERITANCE π§¬
The family tree is giving legacy, and it goes like this:
+-----------------------+ +---------------------------+ +-------------------------+ +----------------------------+ +--------------------------------------+
| HTML::Object::Element | --> | HTML::Object::EventTarget | --> | HTML::Object::DOM::Node | --> | HTML::Object::DOM::Element | --> | HTML::Object::DOM::Element::TableCol |
+-----------------------+ +---------------------------+ +-------------------------+ +----------------------------+ +--------------------------------------+
π PROPERTIES π
Inherits properties from its parent HTML::Object::DOM::Element. Slay.
π span π
It's an unsigned long that reflects the span HTML attribute, indicating the number of columns to apply this object's attributes to. Must be a positive integer, no cap.
Mozilla documentation: https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableColElement/span
π οΈ METHODS π οΈ
Inherits methods from its parent HTML::Object::DOM::Element. Easy.
π DEPRECATED PROPERTIES π
Heads up: these are marked deprecated, so here's the full list anyway.
π align π
Is a string that indicates the horizontal alignment of the cell data in the column.
Mozilla documentation: https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableColElement/align
π ch π
Is a string representing the alignment character for cell data.
Mozilla documentation: https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableColElement/ch
π chOff π
Is a string representing the offset for the alignment character.
Mozilla documentation: https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableColElement/chOff
π choff π
Alias for chOff.
π vAlign π
Is a string that indicates the vertical alignment of the cell data in the column.
Mozilla documentation: https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableColElement/vAlign
π valign π
Alias for vAlign.
π width π
Is a string representing the default column width.
Mozilla documentation: https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableColElement/width
π AUTHOR π
Jacques Deguest <jack@deguest.jp> β iconic.
π SEE ALSO π
- Mozilla documentation:
https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableColElement - Mozilla documentation on tablecol element:
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tablecol
π COPYRIGHT & LICENSE π
Copyright(c) 2022 DEGUEST Pte. Ltd.
All rights reserved
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Byeee π«Ά β footer deets: source/version perl v5.42.2, date 2026-02-15. Mwah π
π¦ where this page comes from
- alpine 3.24: perl-html-object-doc 0.6.0-r1 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms