/** * @license * Copyright Google LLC * SPDX-License-Identifier: Apache-2.0 */ /** * @fileoverview This contains safe wrappers for properties that aren't specific * to one kind of HTMLElement (like innerHTML), plus other setters and functions * that are not tied to elements (like location.href or Worker constructor). */ import '../../environment/dev.js'; import { SafeAttributePrefix } from '../../internals/attribute_impl.js'; import { SafeHtml } from '../../internals/html_impl.js'; import { TrustedResourceUrl } from '../../internals/resource_url_impl.js'; declare type ScriptOrStyle = HTMLScriptElement | HTMLStyleElement | SVGScriptElement | SVGStyleElement; /** * Safely set {@link Element.innerHTML} on a given ShadowRoot or Element which * may not be a `