style(lint): re-format modules/@angular
This commit is contained in:
@ -1,9 +1,11 @@
|
||||
import {Injectable} from '@angular/core';
|
||||
|
||||
import {SecurityContext} from '../../core_private';
|
||||
import {isPresent} from '../facade/lang';
|
||||
import {StringMapWrapper} from '../facade/collection';
|
||||
import {ElementSchemaRegistry} from './element_schema_registry';
|
||||
import {isPresent} from '../facade/lang';
|
||||
|
||||
import {SECURITY_SCHEMA} from './dom_security_schema';
|
||||
import {ElementSchemaRegistry} from './element_schema_registry';
|
||||
|
||||
const EVENT = 'event';
|
||||
const BOOLEAN = 'boolean';
|
||||
@ -238,7 +240,8 @@ export class DomElementSchemaRegistry extends ElementSchemaRegistry {
|
||||
typeName.split(',').forEach(tag => this.schema[tag] = type);
|
||||
var superType = this.schema[typeParts[1]];
|
||||
if (isPresent(superType)) {
|
||||
StringMapWrapper.forEach(superType, (v: any /** TODO #9100 */, k: any /** TODO #9100 */) => type[k] = v);
|
||||
StringMapWrapper.forEach(
|
||||
superType, (v: any /** TODO #9100 */, k: any /** TODO #9100 */) => type[k] = v);
|
||||
}
|
||||
properties.forEach((property: string) => {
|
||||
if (property == '') {
|
||||
|
@ -28,25 +28,10 @@ registerContext(SecurityContext.HTML, [
|
||||
registerContext(SecurityContext.STYLE, ['*|style']);
|
||||
// NB: no SCRIPT contexts here, they are never allowed due to the parser stripping them.
|
||||
registerContext(SecurityContext.URL, [
|
||||
'*|formAction',
|
||||
'area|href',
|
||||
'area|ping',
|
||||
'audio|src',
|
||||
'a|href',
|
||||
'a|ping',
|
||||
'blockquote|cite',
|
||||
'body|background',
|
||||
'del|cite',
|
||||
'form|action',
|
||||
'img|src',
|
||||
'img|srcset',
|
||||
'input|src',
|
||||
'ins|cite',
|
||||
'q|cite',
|
||||
'source|src',
|
||||
'source|srcset',
|
||||
'video|poster',
|
||||
'video|src',
|
||||
'*|formAction', 'area|href', 'area|ping', 'audio|src', 'a|href',
|
||||
'a|ping', 'blockquote|cite', 'body|background', 'del|cite', 'form|action',
|
||||
'img|src', 'img|srcset', 'input|src', 'ins|cite', 'q|cite',
|
||||
'source|src', 'source|srcset', 'video|poster', 'video|src',
|
||||
]);
|
||||
registerContext(SecurityContext.RESOURCE_URL, [
|
||||
'applet|code',
|
||||
|
Reference in New Issue
Block a user