Replace {{event)}} with domxref (batch #2)#14578
Merged
Conversation
Contributor
hamishwillee
reviewed
Apr 4, 2022
| ## Examples | ||
|
|
||
| In the example below, `onpayerdetailchange` is used to set up a listener for the {{event("payerdetailchange")}} event in order to validate the information entered by the user, requesting that any mistakes be corrected | ||
| In the example below, `onpayerdetailchange` is used to set up a listener for the {{domxref("PaymentRequest.payerdetailchange_event", "payerdetailchange")}} event in order to validate the information entered by the user, requesting that any mistakes be corrected |
Collaborator
There was a problem hiding this comment.
Is PaymentRequest.payerdetailchange_event correct? It's giving a macro error and not listed in the parent page or BCD for PaymentRequest.
Contributor
Author
There was a problem hiding this comment.
Good catch, it is PaymentResponse. Even more, it is a link to the very same page it is on. I'm transforming it not to be a link.
hamishwillee
approved these changes
Apr 4, 2022
Collaborator
There was a problem hiding this comment.
Looks great. Approving, but not merging to give you a chance to look at #14578 (comment)
And of course resolving the conflicts :-(
Contributor
Author
|
Thanks: I fixed the two conflicts, and did the fix for the broken link. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Now that we have updated events on
MDN/content, we can replace{{event}}(that is ambiguous or lead to unwanted redirects) with the{{domxref}}macros.