Quantcast
Channel: htmlagilitypack Forum Rss Feed
Viewing all articles
Browse latest Browse all 655

New Post: insert order is reverse on removechild and keepGrandChildren is true

$
0
0
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

Viewing all articles
Browse latest Browse all 655

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>