Skip to content

Add a flag to select that DOM is based on HTMLElement or (Plain)Element #32822

Closed as not planned

Description

As parentElement type is HTMLElement instead of Element, some DOM definitions are intentionally incorrect. I think it should be selectable by tsconfig.json. I propose a compiler option like "dom": "HTML/Plain" or "lib": ["dom/dom.plain"].

related: #4689, #29052

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

    Awaiting More FeedbackThis means we'd like to hear from more people who would be helped by this featureSuggestionAn idea for TypeScript

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions