-
Notifications
You must be signed in to change notification settings - Fork 22.5k
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
fix: syntax errors in JS example sections (v4) #18424
fix: syntax errors in JS example sections (v4) #18424
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
files/en-us/web/api/payment_request_api/using_the_payment_request_api/index.md
Show resolved
Hide resolved
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.
Looks good, a few nits.
@@ -56,9 +56,8 @@ to the video element referenced by the variable `videoElem`. | |||
async function capture() { | |||
let supportedConstraints = navigator.mediaDevices.getSupportedConstraints(); |
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.
let supportedConstraints = navigator.mediaDevices.getSupportedConstraints(); | |
const supportedConstraints = navigator.mediaDevices.getSupportedConstraints(); |
files/en-us/web/api/mediatracksupportedconstraints/logicalsurface/index.md
Outdated
Show resolved
Hide resolved
``` | ||
... | ||
``` |
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.
``` | |
... | |
``` |
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.
A few details, and I can't merge this tomorrow when I wake up 😄
Well done! Our code examples are getting much better: better readability, better code&paste, … There still is a lot of work to do, but we are moving in the right direction. Thank you!
@@ -37,7 +37,7 @@ This proprietary method is specific to Internet Explorer. | |||
|
|||
## Example | |||
|
|||
```js | |||
``` |
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.
Isn't this Typescript? Same for next interface. I'm wondering should these be here as it's not really a example but just typing for this event.
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.
No, this is WebIDL, this is likely the only place this WebIDL is stored nowadays.
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.
👍
Summary
Followup to PR #18186, #18191 and #18307
Skipped issues (POTENTIALLY OUTDATED, SEE #18186 (comment)):
class
as arg namereturn
outside of functionParsing error: Unexpected token :
delete(key)
delete()
continue()
delete(name)
delete(name)
delete(font)
This PR…
-->