-
Notifications
You must be signed in to change notification settings - Fork 440
Add the missing "disabled" property to HTMLStyleElement #1301
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add the missing "disabled" property to HTMLStyleElement #1301
Conversation
…to HTMLStyleElement
Thanks for the PR! This section of the codebase is owned by @saschanaz - if they write a comment saying "LGTM" then it will be merged. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
First, you are looking at a legacy spec, the correct one doesn't have it: https://html.spec.whatwg.org/multipage/semantics.html#htmlstyleelement
But that said, it's true that every browser has it and the spec wants to define it: whatwg/html#5590
So yeah, let's do this.
inputfiles/addedTypes.jsonc
Outdated
@@ -1126,6 +1126,17 @@ | |||
} | |||
} | |||
} | |||
}, | |||
"HTMLStyleElement": { | |||
"name": "HTMLStyleElement", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line is redundant, please remove it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, I updated the code to remove it
lgtm |
Merging because @saschanaz is a code-owner of all the changes - thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approved
Fixes microsoft/TypeScript#42266
Look like the
HTMLStyleElement.disabled
property is defined in the specs, also available on every browser, according to MDN.