1
|
/**
|
2
|
* @license
|
3
|
* Copyright Google Inc. 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
|
*/
|
8
|
import { SchemaMetadata, SecurityContext } from '@angular/core';
|
9
|
import { ElementSchemaRegistry } from './element_schema_registry';
|
10
|
export 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 white list based. All attributes in the schema above are assumed to have the
|
22
|
* 'NONE' security context, i.e. that they are safe inert string values. Only specific well known
|
23
|
* 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
|
normalizeAnimationStyleProperty(propName: string): string;
|
38
|
normalizeAnimationStyleValue(camelCaseProp: string, userProvidedProp: string, val: string | number): {
|
39
|
error: string;
|
40
|
value: string;
|
41
|
};
|
42
|
}
|