From adf2f423fca1013907ef81081c5d2298c4050c5c Mon Sep 17 00:00:00 2001 From: Andre Marianiello Date: Fri, 22 Feb 2019 13:11:31 -0500 Subject: [PATCH] Allow selectors to work with unknown tags See https://godoc.org/golang.org/x/net/html#Node for more information --- selector.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selector.go b/selector.go index 6249f77..693430e 100644 --- a/selector.go +++ b/selector.go @@ -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 } }