MCPcopy Create free account
hub / github.com/andybalholm/cascadia / attributeExistsSelector

Function attributeExistsSelector

selector.go:159–161  ·  view source on GitHub ↗

attributeExistsSelector returns a Selector that matches elements that have an attribute named key.

(key string)

Source from the content-addressed store, hash-verified

157// attributeExistsSelector returns a Selector that matches elements that have
158// an attribute named key.
159func attributeExistsSelector(key string) Selector {
160 return attributeSelector(key, func(string) bool { return true })
161}
162
163// attributeEqualsSelector returns a Selector that matches elements where
164// the attribute named key has the value val.

Callers 1

Calls 1

attributeSelectorFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…