Closed
Description
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
Labels
Type
Projects
Relationships
Development
No branches or pull requests
Activity
djarekg commentedon Jun 24, 2015
How about also HTMLTableElement cells and rows property return a new generic type HTMLCollectionOf where cells is HTMLCollectionOf and rows is HTMLCollectionOf. And the HTMLTableRowElement cells property would be HTMLCollectionOf.
matthewrwilton commentedon Sep 30, 2015
Seems like this didn't make v1.6. Is it possible to get a milestone update?
mhegazy commentedon Sep 30, 2015
@zhengbli is working on releasing the script that generates the typings file. it should come out shortly, and with that we should be able to take PRs for features like this one. putting it on @zhengbli for now.
21 remaining items