HTMLTableElement: tBodies property - Web APIs | MDN (original) (raw)
Baseline
Widely available
The HTMLTableElement.tBodies
read-only property returns a live HTMLCollection of the bodies in a
Although the property is read-only, the returned object is live and allows the modification of its content.
The collection returned includes implicit elements. For example:
<table>
<tr>
<td>cell one</td>
</tr>
</table>
The HTML DOM generated from the above HTML will have a element even though the tags are not included in the source HTML.
Value
Examples
This snippet gets the number of bodies in a table.
Specifications
Specification |
---|
HTML # dom-table-tbodies-dev |