Skip to content

Commit b107d16

Browse files
authored
Fix the logic in IsOverlappedClosingElement method
1 parent e76135f commit b107d16

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/HtmlAgilityPack.Shared/HtmlNode.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -913,7 +913,7 @@ public static bool IsOverlappedClosingElement(string text)
913913
}
914914

915915
// min is </x>: 4
916-
if (text.Length <= 4)
916+
if (text.Length < 4)
917917
return false;
918918

919919
if ((text[0] != '<') ||
@@ -2833,4 +2833,4 @@ private bool IsEmpty(IEnumerable en)
28332833

28342834
#endregion
28352835
}
2836-
}
2836+
}

0 commit comments

Comments
 (0)