Skip to content

Commit fce7fa7

Browse files
committed
tr.insertCell now returns HTMLTableDataCellElement
1 parent 198a68c commit fce7fa7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

baselines/dom.generated.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7126,7 +7126,7 @@ interface HTMLTableRowElement extends HTMLElement, HTMLTableAlignment {
71267126
/**
71277127
* Retrieves a collection of all cells in the table row.
71287128
*/
7129-
cells: HTMLCollectionOf<HTMLTableCellElement>;
7129+
cells: HTMLCollectionOf<HTMLTableDataCellElement | HTMLTableHeaderCellElement>;
71307130
/**
71317131
* Sets or retrieves the height of the object.
71327132
*/
@@ -7148,7 +7148,7 @@ interface HTMLTableRowElement extends HTMLElement, HTMLTableAlignment {
71487148
* Creates a new cell in the table row, and adds the cell to the cells collection.
71497149
* @param index Number that specifies where to insert the cell in the tr. The default value is -1, which appends the new cell to the end of the cells collection.
71507150
*/
7151-
insertCell(index?: number): HTMLTableCellElement;
7151+
insertCell(index?: number): HTMLTableDataCellElement;
71527152
addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
71537153
}
71547154

inputfiles/overridingTypes.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@
360360
"kind": "method",
361361
"interface": "HTMLTableRowElement",
362362
"name": "insertCell",
363-
"signatures": ["insertCell(index?: number): HTMLTableCellElement"]
363+
"signatures": ["insertCell(index?: number): HTMLTableDataCellElement"]
364364
},
365365
{
366366
"kind": "property",

0 commit comments

Comments
 (0)