Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
get(this: Element): string {
if (!featureFlags.ENABLE_ELEMENT_PATCH) {
if (isNodeShadowed(this) || isHostElement(this)) {
return innerHTMLGetterPatched.call(this);
}
return innerHTMLGetter.call(this);
}
// TODO [#1222]: remove global bypass
if (isGlobalPatchingSkipped(this)) {
return innerHTMLGetter.call(this);
}
return innerHTMLGetterPatched.call(this);
},
set(v: string) {
get(this: Element): string {
if (!featureFlags.ENABLE_ELEMENT_PATCH) {
if (isNodeShadowed(this) || isHostElement(this)) {
return outerHTMLGetterPatched.call(this);
}
return outerHTMLGetter.call(this);
}
// TODO [#1222]: remove global bypass
if (isGlobalPatchingSkipped(this)) {
return outerHTMLGetter.call(this);
}
return outerHTMLGetterPatched.call(this);
},
set(v: string) {