Skip to content

Remove inline style/script (API H–S) #39783

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
Jun 11, 2025
Merged

Conversation

Josh-Cena
Copy link
Member

Continuation of #39757

@Josh-Cena Josh-Cena requested a review from a team as a code owner June 4, 2025 06:01
@Josh-Cena Josh-Cena requested review from wbamberg and removed request for a team June 4, 2025 06:01
@github-actions github-actions bot added the Content:WebAPI Web API docs label Jun 4, 2025
@Josh-Cena Josh-Cena requested a review from bsmth June 4, 2025 06:01
@github-actions github-actions bot added the size/xl [PR only] >1000 LoC changed label Jun 4, 2025
Copy link
Contributor

github-actions bot commented Jun 4, 2025

Preview URLs (51 pages)
External URLs (5)

URL: /en-US/docs/Web/API/Pointer_events
Title: Pointer events

(comment last updated: 2025-06-11 13:23:38)

@bsmth bsmth self-requested a review June 10, 2025 12:29
@bsmth
Copy link
Member

bsmth commented Jun 10, 2025

Sorry I ran out of steam on these inline script/style ones. I'll cycle back to it shortly

@Josh-Cena
Copy link
Member Author

np. Take your time!

```

It's possible to send a notification as follows — here we present a fairly verbose and complete set of code you could use if you wanted to first check whether notifications are supported, then check if permission has been granted for the current origin to send notifications, then request permission if required, before then sending a notification.

```js
document.querySelector("button").addEventListener("click", notifyMe);
Copy link
Member

Choose a reason for hiding this comment

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

Maybe for later, but this is a good page to add {{embedlivesample}} to.

@bsmth
Copy link
Member

bsmth commented Jun 11, 2025

I think that's everything, Josh, thanks for the improvements. As usual, checked diffs, ran a few examples to double-check, and checked live samples when they existed. A few comments for you to 🙏🏻

Copy link
Member

@bsmth bsmth left a comment

Choose a reason for hiding this comment

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

Couple of comments to check.

Co-authored-by: Brian Smith <brian@smith.berlin>
@Josh-Cena Josh-Cena requested a review from bsmth June 11, 2025 13:22
Copy link
Member

@bsmth bsmth left a comment

Choose a reason for hiding this comment

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

Great, thanks, Josh 👍🏻

@Josh-Cena Josh-Cena merged commit 7cd51a7 into mdn:main Jun 11, 2025
8 checks passed
@Josh-Cena Josh-Cena deleted the inline-style branch June 11, 2025 15:52
hamishwillee pushed a commit to yoavweiss/content that referenced this pull request Jun 24, 2025
* Remove inline style/script (API H–S)

* Apply suggestions from code review

Co-authored-by: Brian Smith <brian@smith.berlin>

---------

Co-authored-by: Brian Smith <brian@smith.berlin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content:WebAPI Web API docs size/xl [PR only] >1000 LoC changed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants