~~insertRow(index?: number): HTMLElement;~~ insertRow(index?: number): **HTMLTableRowElement** ; ~~insertCell(index?: number): HTMLElement;~~ insertCell(index?: number): **HTMLTableCellElement**; also HTMLTableElement.rows is not a collection of HTMLTableRowElements!? Am I mistaken here?
Activity
[-]HTMLTableElement Functions return wrong interfaces (insertRow, insertCell)[/-][+]HTMLTableElement Functions return wrong types (insertRow, insertCell)[/+]RyanCavanaugh commentedon Nov 26, 2014
lib.d.ts is auto-generated from the spec and the W3C doesn't specify that this must return a cell (though I suspect it always does!). http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-68927016
We should probably patch this specific one, though.
EricLambrecht commentedon Nov 27, 2014
Aaah, didn't know that. But thank you, patching this would be awesome!
mhegazy commentedon Dec 1, 2015
duplicate of #3583, and should be fixed in #5836