source: trip-planner-front/node_modules/@angular/compiler/src/schema/dom_element_schema_registry.d.ts@ 6a3a178

Last change on this file since 6a3a178 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 1.8 KB
Line 
1/**
2 * @license
3 * Copyright Google LLC All Rights Reserved.
4 *
5 * Use of this source code is governed by an MIT-style license that can be
6 * found in the LICENSE file at https://angular.io/license
7 */
8import { SchemaMetadata, SecurityContext } from '../core';
9import { ElementSchemaRegistry } from './element_schema_registry';
10export declare class DomElementSchemaRegistry extends ElementSchemaRegistry {
11 private _schema;
12 constructor();
13 hasProperty(tagName: string, propName: string, schemaMetas: SchemaMetadata[]): boolean;
14 hasElement(tagName: string, schemaMetas: SchemaMetadata[]): boolean;
15 /**
16 * securityContext returns the security context for the given property on the given DOM tag.
17 *
18 * Tag and property name are statically known and cannot change at runtime, i.e. it is not
19 * possible to bind a value into a changing attribute or tag name.
20 *
21 * The filtering is based on a list of allowed tags|attributes. All attributes in the schema
22 * above are assumed to have the 'NONE' security context, i.e. that they are safe inert
23 * string values. Only specific well known attack vectors are assigned their appropriate context.
24 */
25 securityContext(tagName: string, propName: string, isAttribute: boolean): SecurityContext;
26 getMappedPropName(propName: string): string;
27 getDefaultComponentElementName(): string;
28 validateProperty(name: string): {
29 error: boolean;
30 msg?: string;
31 };
32 validateAttribute(name: string): {
33 error: boolean;
34 msg?: string;
35 };
36 allKnownElementNames(): string[];
37 allKnownAttributesOfElement(tagName: string): string[];
38 normalizeAnimationStyleProperty(propName: string): string;
39 normalizeAnimationStyleValue(camelCaseProp: string, userProvidedProp: string, val: string | number): {
40 error: string;
41 value: string;
42 };
43}
Note: See TracBrowser for help on using the repository browser.