insert order is reverse on removechild and keepGrandChildren is true

Mar 26, 2014 at 4:24 AM
HtmlNode HtmlNode.RemoveChild(HtmlNode oldChild, bool keepGrandChildren)
{
...
            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