// combineSelectors returns a selector that will match wherever a or b matches.
combineSelectors returns a selector that will match wherever a or b matches.
// combineSelectors returns a selector that will match wherever a or b matches .
func combineSelectors(a, b selector) selector {
	s := selector{
		Selector: func(n *html.Node) bool { return a.Selector(n) || b.Selector(n) },
		s:        a.s + ", " + b.s,
	}
	if strings.Contains(a.s, ":contains") {
		s.s = b.s
	} else if strings.Contains(b.s, ":contains") {
		s.s = a.s
	}
	return s
}
func combineSelectors ( a , b selector ) selector { s := selector { Selector : func ( n * html . Node ) bool { return a . Selector ( n ) || b . Selector ( n ) } , s : a . s + " " + b . s , } if strings . Contains ( a . s , " " ) { s . s = b . s } else if strings . Contains ( b . s , " " ) { s . s = a . s } return s }
combineSelectors returns a selector that will match wherever a or b matches.
combineSelectors returns a selector that will match wherever a or b matches .
// :contains selectors don't work in browser CSS, just in jQuery and Cascadia. // So leave those out of the string version.