Skip to content

Make insertAdjacentElement example a live example in the page #39443

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

wbamberg
Copy link
Collaborator

@wbamberg wbamberg commented May 7, 2025

Follow up to #39416.

The page currently presents an incomplete example and refers to https://github.com/mdn/dom-examples/blob/main/insert-adjacent/insertAdjacentElement.html for the complete runnable example. There's no reason this entire example can't be in the page.

I also made some changes to the code to make it more concise and expressive, and use modern syntax like arrow functions and template literals.

@wbamberg wbamberg requested a review from a team as a code owner May 7, 2025 17:00
@wbamberg wbamberg requested review from sideshowbarker and removed request for a team May 7, 2025 17:00
@github-actions github-actions bot added Content:WebAPI Web API docs size/m [PR only] 51-500 LoC changed labels May 7, 2025
Copy link
Contributor

github-actions bot commented May 7, 2025

Preview URLs

(comment last updated: 2025-05-07 17:27:15)

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/m [PR only] 51-500 LoC changed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant