HTML::O...ableCol(3)

πŸ“¦ version 0.6.0, in alpine 3.24

πŸŽ€ 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 πŸ”—


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