TypeScript-DOM-lib-generator icon indicating copy to clipboard operation
TypeScript-DOM-lib-generator copied to clipboard

Node.parentElement should be Element, not HTMLElement

Open jonahShaf opened this issue 1 year ago • 1 comments

In lib.dom.d.ts Node.parentElement is defined as being HTMLelement | null. However, it should Element | null. The spec confirms this. This issue was originally fixed by #885 but was reverted in https://github.com/microsoft/TypeScript-DOM-lib-generator/commit/c81fa761df9c4483cd7f5d9767415660d4f1ee90. I didn't see any reasoning attached to that revert commit and the typing is still incorrect after the revert.

jonahShaf avatar Apr 17 '24 14:04 jonahShaf