Skip to content

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

Merged
merged 2 commits into from
Mar 31, 2022

Conversation

huytd
Copy link
Contributor

@huytd huytd commented Mar 31, 2022

Fixes microsoft/TypeScript#42266

Look like the HTMLStyleElement.disabled property is defined in the specs, also available on every browser, according to MDN.

@github-actions
Copy link
Contributor

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.

Copy link
Contributor

@saschanaz saschanaz left a 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.

@@ -1126,6 +1126,17 @@
}
}
}
},
"HTMLStyleElement": {
"name": "HTMLStyleElement",
Copy link
Contributor

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.

Copy link
Contributor Author

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

@saschanaz
Copy link
Contributor

lgtm

@github-actions github-actions bot merged commit ff45546 into microsoft:main Mar 31, 2022
@github-actions
Copy link
Contributor

Merging because @saschanaz is a code-owner of all the changes - thanks!

@huytd huytd deleted the fix-typescript-issue-42266 branch March 31, 2022 18:28
Copy link

@yositripAction yositripAction left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

approved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

HTMLStyleElement is missing disabled property
3 participants