MCPcopy Create free account
hub / github.com/ampproject/amphtml / applySelectorScope

Function applySelectorScope

third_party/webcomponentsjs/ShadowCSS.js:206–210  ·  view source on GitHub ↗
(selector, selectorScope)

Source from the content-addressed store, hash-verified

204}
205
206export function applySelectorScope(selector, selectorScope) {
207 return allowArraySelectors && Array.isArray(selectorScope) ?
208 applySelectorScopeList(selector, selectorScope) :
209 applySimpleSelectorScope(selector, selectorScope);
210}
211
212// apply an array of selectors
213export function applySelectorScopeList(selector, scopeSelectorList) {

Callers 1

doScopeSelectorFunction · 0.85

Calls 2

applySelectorScopeListFunction · 0.85
applySimpleSelectorScopeFunction · 0.85

Tested by

no test coverage detected