Skip to content

Commit

Permalink
Allow selectors to work with unknown tags
Browse files Browse the repository at this point in the history
  • Loading branch information
Andre Marianiello authored and Andre Marianiello committed Feb 22, 2019
1 parent 8f884ca commit adf2f42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion selector.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func (s CSSSelector) Match(node *html.Node) bool {
return false
}
if s.Tag != "" {
if s.Tag != node.DataAtom.String() {
if s.Tag != node.Data {
return false
}
}
Expand Down

0 comments on commit adf2f42

Please sign in to comment.