-
Notifications
You must be signed in to change notification settings - Fork 440
Fixed #242025 - Added nonce #503
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
Conversation
Shouldn't this change go to addingTypes.json? |
@saschanaz should we add https://html.spec.whatwg.org/multipage/scripting.html#the-script-element instead? |
@mhegazy #496 already did that. |
Also, |
Thanks, I appreciate the responses. |
HTMLOrSVGElement should also be added to FocusOptions should rather be added by https://html.spec.whatwg.org/multipage/interaction.html and also |
Thanks for the feedback, I added |
@irrationalRock For FocusOptions, you can add this to inputfiles/idlSources.json: {
"url": "https://html.spec.whatwg.org/multipage/interaction.html",
"title": "HTML - User interaction"
} ...and then run |
I added If |
|
Oops, I was wrong. Just adding |
"focus": { | ||
"name": "focus", | ||
"override-signatures": [ | ||
"focus(options?: FocusOptions): void" |
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.
so why is this needed?
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.
For https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus. (Separate from nonce, though.)
This PR addresses the following issue: microsoft/TypeScript#24205.
It adds
nonce
to bothHTMLScriptElement
andHTMLStyleElement
.Thanks for considering this PR.