Skip to content

Element.textContent should not be nullable #1939

Open
@mohd-akram

Description

@mohd-akram

textContent is inherited from Node, but in an Element context it is never null. It can be added to Element as string instead of string | null to eliminate unnecessary null checks.

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