HtmlNode HtmlNode.RemoveChild(HtmlNode oldChild, bool keepGrandChildren)
{
...
}
this.InsertAfter(grandchild, prev) have error, insert order is reverse
{
...
HtmlNode prev = oldChild.PreviousSibling;
foreach (HtmlNode grandchild in (IEnumerable<HtmlNode>)oldChild._childnodes)
{
this.InsertAfter(grandchild, prev);
}
...}
this.InsertAfter(grandchild, prev) have error, insert order is reverse