You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/HtmlAgilityPack.Shared/HtmlNode.cs
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1005,6 +1005,12 @@ public void SetChildNodesId(HtmlNode chilNode)
1005
1005
foreach(HtmlNodechildinchilNode.ChildNodes)
1006
1006
{
1007
1007
_ownerdocument.SetIdForNode(child,child.GetId());
1008
+
1009
+
if(child.ChildNodes==chilNode.ChildNodes)
1010
+
{
1011
+
thrownewException("Oops! a scenario that will cause a Stack Overflow has been found. See the following issue for an example: https://github.com/zzzprojects/html-agility-pack/issues/513");
0 commit comments