angular-html-parser
Version:
A HTML parser extracted from Angular with some modifications
27 lines (26 loc) • 997 B
TypeScript
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import { SecurityContext } from "../core.js";
export declare function SECURITY_SCHEMA(): {
[k: string]: SecurityContext;
};
/**
* The set of security-sensitive attributes of an `<iframe>` that *must* be
* applied as a static attribute only. This ensures that all security-sensitive
* attributes are taken into account while creating an instance of an `<iframe>`
* at runtime.
*
* Note: avoid using this set directly, use the `isIframeSecuritySensitiveAttr` function
* in the code instead.
*/
export declare const IFRAME_SECURITY_SENSITIVE_ATTRS: Set<string>;
/**
* Checks whether a given attribute name might represent a security-sensitive
* attribute of an <iframe>.
*/
export declare function isIframeSecuritySensitiveAttr(attrName: string): boolean;