Skip to content

Node.parentElement should be Element, not HTMLElement #1706

Open
@jonahShaf

Description

@jonahShaf

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 c81fa76. I didn't see any reasoning attached to that revert commit and the typing is still incorrect after the revert.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions