From f8070675912f82581bdc915edf8aad9fc4a3a518 Mon Sep 17 00:00:00 2001 From: mdrokz <33598169+mdrokz@users.noreply.github.com> Date: Sun, 15 Aug 2021 14:23:26 +0530 Subject: [PATCH] Support wildcard element selector --- selector.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selector.go b/selector.go index cc6e059..da802a7 100644 --- a/selector.go +++ b/selector.go @@ -85,7 +85,7 @@ func (s CSSSelector) Match(node *html.Node) bool { if node.Type != html.ElementNode { return false } - if s.Tag != "" { + if s.Tag != "" && s.Tag != "*" { if s.Tag != node.DataAtom.String() { return false }