<p dir="auto"><del>insertRow(index?: number): HTMLElement;</del><br>
insertRow(index?: number): <strong>HTMLTableRowElement</strong> ;<br>
<del>insertCell(index?: number): HTMLElement;</del><br>
insertCell(index?: number): <strong>HTMLTableCellElement</strong>;</p>
<p dir="auto">also HTMLTableElement.rows is not a collection of HTMLTableRowElements!?</p>
<p dir="auto">Am I mistaken here?</p>
<p dir="auto">A couple of html table related methods in lib.d.ts return HTMLElement, but they could return a more precise type:</p>
<ul dir="auto">
<li>HTMLTableElement.insertRow should return HTMLTableRowElement instead of HTMLElement</li>
<li>HTMLTableElement.createTHead should return HTMLTableSectionElement instead of HTMLElement</li>
<li>HTMLTableElement.createTBody should return HTMLTableSectionElement instead of HTMLElement</li>
<li>HTMLTableElement.createTFoot should return HTMLTableSectionElement instead of HTMLElement</li>
<li>HTMLTableElement.createCaption should return HTMLTableCaptionElement instead of HTMLElement</li>
<li>HTMLTableSectionElement.insertRow should return HTMLTableRowElement instead of HTMLElement</li>
<li>HTMLTableRowElement.insertCell should return HTMLTableCellElement instead of HTMLElement</li>
</ul>