Skip to content

HTMLTableElement Functions return wrong types (insertRow, insertCell) #1274

Closed

Description

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

  1. changed the title [-]HTMLTableElement Functions return wrong interfaces (insertRow, insertCell)[/-] [+]HTMLTableElement Functions return wrong types (insertRow, insertCell)[/+] on Nov 26, 2014
  2. added
    Domain: lib.d.tsThe issue relates to the different libraries shipped with TypeScript
    RevisitAn issue worth coming back to
    BugA bug in TypeScript
    on Nov 26, 2014
  3. RyanCavanaugh commented on Nov 26, 2014

    @RyanCavanaugh
    Member

    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.

  4. EricLambrecht commented on Nov 27, 2014

    @EricLambrecht
    Author

    Aaah, didn't know that. But thank you, patching this would be awesome!

  5. mhegazy commented on Dec 1, 2015

    @mhegazy
    Contributor

    duplicate of #3583, and should be fixed in #5836

  6. added
    DuplicateAn existing issue was already created
    and removed
    Domain: lib.d.tsThe issue relates to the different libraries shipped with TypeScript
    RevisitAn issue worth coming back to
    on Dec 1, 2015
  7. locked and limited conversation to collaborators on Jun 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

BugA bug in TypeScriptDuplicateAn existing issue was already created

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions