Skip to content
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

Update "Modifying the document" page: element vs. node clarification #3802

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ltlaitoff
Copy link

The documentation has been synchronized with MDN

These changes might seem insignificant, but they will reduce confusion for developers reading this documentation

For the methods append, prepend, before, after, and replaceWith, the term "node" was replaced with "element" because these methods are actually only available on elements and not on nodes

For the methods appendChild, insertBefore, replaceChild, and removeChild, "parentElem" was replaced with "parentNode" because these methods are available for all types of nodes

The method elem.cloneNode was changed to node.cloneNode because this method supports cloning any type of node, not just elements

@javascript-translate-bot javascript-translate-bot added the review needed Review needed, please approve or request changes label Jan 12, 2025
@javascript-translate-bot javascript-translate-bot requested review from a team January 12, 2025 06:27
@CLAassistant
Copy link

CLAassistant commented Jan 12, 2025

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
review needed Review needed, please approve or request changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants