-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
html: add PrependChild and InsertAfter
These methods complement the already existing AppendChild and InsertBefore methods in allowing for easy and safe manipulation of Node trees. For example code like oldChild.Parent.InsertBefore(newChild, oldChild.NextSibling) can now be written like oldChild.Parent.InsertAfter(newChild, oldChild) and code like node.InsertBefore(newNode, node.FirstChild) can now be written like node.PrependChild(newNode) Fixes #46960
- Loading branch information
Showing
1 changed file
with
49 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters