Skip to content

Commit

Permalink
Fix NoRecursive
Browse files Browse the repository at this point in the history
  • Loading branch information
sunshineplan committed Jun 1, 2023
1 parent ec32ba8 commit a03eda4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion finder.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func (n *htmlNode) find(method FindMethod, text bool, limit int, tag TagFilter,
f(node, filters...)
}
case NoRecursive:
if raw := node.Raw(); n.Raw() != raw {
if raw := node.Raw(); n.Raw() == raw {
f(node.FirstChild(), filters...)
} else {
f(node.NextSibling(), filters...)
Expand Down

0 comments on commit a03eda4

Please sign in to comment.