Skip to content

Commit

Permalink
micro optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
rbri committed Nov 26, 2024
1 parent 5d9bea7 commit 414c672
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,10 @@ private DomNode findElementOnStack(final String... searchedElementNames) {
}

private static boolean isTableChild(final String nodeName) {
if (nodeName == null || nodeName.length() < 5) {
return false;
}

return "thead".equals(nodeName)
|| "tbody".equals(nodeName)
|| "tfoot".equals(nodeName)
Expand Down

0 comments on commit 414c672

Please sign in to comment.