Skip to content

Node.parentElement should be Element, not HTMLElement #1706

Open

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.

Activity

  1. HolgerJeromin commented on Apr 18, 2024

    @HolgerJeromin
    Contributor

    This whole topic is not about implementing the spec but about usability.
    #1151 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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