Skip to content

Commit

Permalink
Add explicit end for tbody
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanMagnan committed Mar 27, 2024
1 parent 43d5133 commit d341c98
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/HtmlAgilityPack.Shared/HtmlDocument.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1962,6 +1962,9 @@ private bool IsParentExplicitEnd()
case "thead":
isExplicitEnd = nodeName == "tbody";
break;
case "tbody":
isExplicitEnd = nodeName == "tbody";
break;
case "td":
isExplicitEnd = nodeName == "td" || nodeName == "th" || nodeName == "tr" || nodeName == "tbody";
break;
Expand Down

0 comments on commit d341c98

Please sign in to comment.