Skip to content

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

Closed
ltlaitoff wants to merge 1 commit intojavascript-tutorial:masterfrom
ltlaitoff:patch-1
Closed

Update "Modifying the document" page: element vs. node clarification#3802
ltlaitoff wants to merge 1 commit intojavascript-tutorial:masterfrom
ltlaitoff:patch-1

Conversation

@ltlaitoff
Copy link
Copy Markdown

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
Copy Markdown

CLAassistant commented Jan 12, 2025

CLA assistant check
All committers have signed the CLA.

@ltlaitoff ltlaitoff closed this by deleting the head repository Aug 17, 2025
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