Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
value(this: HTMLBodyElement): HTMLCollectionOf<element> {
const elements = arrayFromCollection(
elementGetElementsByClassName.apply(
this,
ArraySlice.call(arguments) as [string]
)
) as Element[];
if (!featureFlags.ENABLE_HTML_COLLECTIONS_PATCH) {
return createStaticHTMLCollection(
getNonPatchedFilteredArrayOfNodes(this, elements)
);
}
const filteredResults = getFilteredArrayOfNodes(
this,
elements,
ShadowDomSemantic.Enabled
);
return createStaticHTMLCollection(filteredResults);
},
writable: true,</element>
value(this: HTMLBodyElement): HTMLCollectionOf<element> {
const elements = arrayFromCollection(
elementGetElementsByTagName.apply(this, ArraySlice.call(arguments) as [string])
) as Element[];
if (!featureFlags.ENABLE_HTML_COLLECTIONS_PATCH) {
return createStaticHTMLCollection(
getNonPatchedFilteredArrayOfNodes(this, elements)
);
}
const filteredResults = getFilteredArrayOfNodes(
this,
elements,
ShadowDomSemantic.Enabled
);
return createStaticHTMLCollection(filteredResults);
},
writable: true,</element>