// matchAttr compares the value of an attribute on an ElementNode, ignoring
// namespaces.
matchAttr compares the value of an attribute on an ElementNode, ignoring
namespaces.
// matchAttr compares the value of an attribute on an ElementNode ignoring // namespaces .
func matchAttr(n *html.Node, key, value string) bool {
	if n.Type == html.ElementNode {
		for _, a := range n.Attr {
			if a.Key == key && a.Val == value {
				return true
			}
		}
	}
	return false
}
func matchAttr ( n * html . Node , key , value string ) bool { if n . Type == html . ElementNode { for _ , a := range n . Attr { if a . Key == key && a . Val == value { return true } } } return false }
matchAttr compares the value of an attribute on an ElementNode, ignoring
namespaces.
matchAttr compares the value of an attribute on an ElementNode ignoring namespaces .