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

Function applySelectorScopeList

third_party/webcomponentsjs/ShadowCSS.js:213–219  ·  view source on GitHub ↗
(selector, scopeSelectorList)

Source from the content-addressed store, hash-verified

211
212// apply an array of selectors
213export function applySelectorScopeList(selector, scopeSelectorList) {
214 var r = [];
215 for (var i=0, s; (s=scopeSelectorList[i]); i++) {
216 r.push(applySimpleSelectorScope(selector, s));
217 }
218 return r.join(', ');
219}
220
221// scope via name and [is=name]
222export function applySimpleSelectorScope(selector, scopeSelector) {

Callers 1

applySelectorScopeFunction · 0.85

Calls 2

applySimpleSelectorScopeFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected