MCPcopy Create free account
hub / github.com/crufter/goquery / indexOfElementInScope

Method indexOfElementInScope

exp/html/parse.go:103–145  ·  view source on GitHub ↗

indexOfElementInScope returns the index in p.oe of the highest element whose tag is in matchTags that is in scope. If no matching element is in scope, it returns -1.

(s scope, matchTags ...string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

popUntilMethod · 0.95
elementInScopeMethod · 0.95
inBodyIMFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected