Skip to content

Comments

Fix warning prefixes#8244

Merged
teoli2003 merged 8 commits intomdn:mainfrom
wbamberg:fix-warning-prefixes
Aug 24, 2021
Merged

Fix warning prefixes#8244
teoli2003 merged 8 commits intomdn:mainfrom
wbamberg:fix-warning-prefixes

Conversation

@wbamberg
Copy link
Collaborator

@wbamberg wbamberg commented Aug 23, 2021

This is part of #8180 (the last part, I hope).

It fixes up all warnings in Web/API so they are Markdown convertible. There weren't as many of these as the notes, so this is just one PR, but it's grouped by commits:

  • 30a2b1b: convert prefix text from Important to Warning
  • 63f4f24: convert <h4>-style to <strong>-style
  • 18ed8a2: wrap warnings in <p>; move colon inside <strong> (2 changes in this one commit I'm afraid)
  • 3d2e704: add <strong>Warning</strong> prefix where it was missing entirely
  • 0d93699: manual cleanup of ones I missed
  • 6866a76: finally I deleted a couple of pages that don't look useful. Only one was directly relevant to this change, but the other one came up in conversation and seemed worth removing too.
  • a9b0772: remove links to the deleted pages

@wbamberg wbamberg requested review from a team as code owners August 23, 2021 23:42
@wbamberg wbamberg requested review from Rumyra and removed request for a team August 23, 2021 23:42
@github-actions

This comment has been minimized.

Copy link
Contributor

@teoli2003 teoli2003 left a comment

Choose a reason for hiding this comment

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

Two small fixes are needed. Else, this is really cool.


<div class="overheadIndicator nonStandard nonStandardHeader">
<p><strong>Caution:</strong><br>
<p><strong>Warning:</strong><br>
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you remove the <br>?


<div class="warning">
<p><strong>Warning: </strong>When implementing PushManager subscriptions, it is vitally important that you protect against CSRF/XSRF issues in your app. See the following articles for more information:</p>
<p><strong>Warning:</strong>When implementing PushManager subscriptions, it is vitally important that you protect against CSRF/XSRF issues in your app. See the following articles for more information:</p>
Copy link
Contributor

Choose a reason for hiding this comment

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

Missing space after <\strong>

@wbamberg
Copy link
Collaborator Author

I made those changes. Thanks again for all these reviews :).

@teoli2003 teoli2003 merged commit 6a7506e into mdn:main Aug 24, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants