Add a flag to select that DOM is based on HTMLElement or (Plain)Element #32822
Labels
Add a Flag
Any problem can be solved by flags, except for the problem of having too many flags
Awaiting More Feedback
This means we'd like to hear from more people who would be helped by this feature
Suggestion
An idea for TypeScript
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
The text was updated successfully, but these errors were encountered: