Skip to content

HTMLTableElement

Generated from idl/html.webidl when the site was built at 7aa23e2.

HTMLTableElement is an interface in idl/html.webidl, inheriting HTMLElement, exposed in Window. What it does is on MDN; this page says what niso has of it.

The web features its members belong to, each with its Baseline status on the web and how much of the feature’s WPT suite passes in niso (see Web platform support).

Feature On the web In niso Members
Tables Widely available Partial 82% 135 of 163 subtests pass 15
constructor
[HTMLConstructor] constructor();
attribute
attribute HTMLTableCaptionElement? caption;
int32_t niso_html_table_element_get_caption(niso_dom* dom, niso_handle self, niso_handle* out);
int32_t niso_html_table_element_set_caption(niso_dom* dom, niso_handle self, niso_handle value);
operation
HTMLTableCaptionElement createCaption();
int32_t niso_html_table_element_create_caption(niso_dom* dom, niso_handle self, niso_handle* out);
operation
undefined deleteCaption();
int32_t niso_html_table_element_delete_caption(niso_dom* dom, niso_handle self);
attribute
attribute HTMLTableSectionElement? tHead;
int32_t niso_html_table_element_get_t_head(niso_dom* dom, niso_handle self, niso_handle* out);
int32_t niso_html_table_element_set_t_head(niso_dom* dom, niso_handle self, niso_handle value);
operation
HTMLTableSectionElement createTHead();
int32_t niso_html_table_element_create_t_head(niso_dom* dom, niso_handle self, niso_handle* out);
operation
undefined deleteTHead();
int32_t niso_html_table_element_delete_t_head(niso_dom* dom, niso_handle self);
attribute
attribute HTMLTableSectionElement? tFoot;
int32_t niso_html_table_element_get_t_foot(niso_dom* dom, niso_handle self, niso_handle* out);
int32_t niso_html_table_element_set_t_foot(niso_dom* dom, niso_handle self, niso_handle value);
operation
HTMLTableSectionElement createTFoot();
int32_t niso_html_table_element_create_t_foot(niso_dom* dom, niso_handle self, niso_handle* out);
operation
undefined deleteTFoot();
int32_t niso_html_table_element_delete_t_foot(niso_dom* dom, niso_handle self);
attribute
readonly attribute HTMLCollection tBodies;
int32_t niso_html_table_element_get_t_bodies(niso_dom* dom, niso_handle self, niso_handles* out);
operation
HTMLTableSectionElement createTBody();
int32_t niso_html_table_element_create_t_body(niso_dom* dom, niso_handle self, niso_handle* out);
attribute
readonly attribute HTMLCollection rows;
int32_t niso_html_table_element_get_rows(niso_dom* dom, niso_handle self, niso_handles* out);
operation
HTMLTableRowElement insertRow(optional long index = -1);
int32_t niso_html_table_element_insert_row(niso_dom* dom, niso_handle self, int32_t index, niso_handle* out);
operation
undefined deleteRow(long index);
int32_t niso_html_table_element_delete_row(niso_dom* dom, niso_handle self, int32_t index);

Members the web has, by the BCD keys web-features 3.45.0 lists, that idl/ doesn’t declare. The list is partial: web-features lists only the keys it maps to a feature.

  • align (Table styling)
  • bgColor (Table styling)
  • border (Table styling)
  • cellPadding (Table styling)
  • cellSpacing (Table styling)
  • frame (Table styling)
  • rules (Table styling)
  • summary (Table styling)
  • width (Table styling)