Skip to content

lib.d.ts HTMLTableElement, HTMLTableSectionElement, and HTMLTableRowElement #3583

Closed
@kvarekamp

Description

@kvarekamp

A couple of html table related methods in lib.d.ts return HTMLElement, but they could return a more precise type:

  • HTMLTableElement.insertRow should return HTMLTableRowElement instead of HTMLElement
  • HTMLTableElement.createTHead should return HTMLTableSectionElement instead of HTMLElement
  • HTMLTableElement.createTBody should return HTMLTableSectionElement instead of HTMLElement
  • HTMLTableElement.createTFoot should return HTMLTableSectionElement instead of HTMLElement
  • HTMLTableElement.createCaption should return HTMLTableCaptionElement instead of HTMLElement
  • HTMLTableSectionElement.insertRow should return HTMLTableRowElement instead of HTMLElement
  • HTMLTableRowElement.insertCell should return HTMLTableCellElement instead of HTMLElement

Metadata

Metadata

Assignees

No one assigned

    Labels

    Breaking ChangeWould introduce errors in existing codeBugA bug in TypeScriptDomain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptFixedA PR has been merged for this issue

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions