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)
- Loading branch information