1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 | import { SchemaMetadata, SecurityContext } from '../core';
|
9 | import { ElementSchemaRegistry } from './element_schema_registry';
|
10 | export declare class DomElementSchemaRegistry extends ElementSchemaRegistry {
|
11 | private _schema;
|
12 | private _eventSchema;
|
13 | constructor();
|
14 | hasProperty(tagName: string, propName: string, schemaMetas: SchemaMetadata[]): boolean;
|
15 | hasElement(tagName: string, schemaMetas: SchemaMetadata[]): boolean;
|
16 | /**
|
17 | * securityContext returns the security context for the given property on the given DOM tag.
|
18 | *
|
19 | * Tag and property name are statically known and cannot change at runtime, i.e. it is not
|
20 | * possible to bind a value into a changing attribute or tag name.
|
21 | *
|
22 | * The filtering is based on a list of allowed tags|attributes. All attributes in the schema
|
23 | * above are assumed to have the 'NONE' security context, i.e. that they are safe inert
|
24 | * string values. Only specific well known attack vectors are assigned their appropriate context.
|
25 | */
|
26 | securityContext(tagName: string, propName: string, isAttribute: boolean): SecurityContext;
|
27 | getMappedPropName(propName: string): string;
|
28 | getDefaultComponentElementName(): string;
|
29 | validateProperty(name: string): {
|
30 | error: boolean;
|
31 | msg?: string;
|
32 | };
|
33 | validateAttribute(name: string): {
|
34 | error: boolean;
|
35 | msg?: string;
|
36 | };
|
37 | allKnownElementNames(): string[];
|
38 | allKnownAttributesOfElement(tagName: string): string[];
|
39 | allKnownEventsOfElement(tagName: string): string[];
|
40 | normalizeAnimationStyleProperty(propName: string): string;
|
41 | normalizeAnimationStyleValue(camelCaseProp: string, userProvidedProp: string, val: string | number): {
|
42 | error: string;
|
43 | value: string;
|
44 | };
|
45 | }
|