fix(ivy): use proper sanitizer names (#25817)
Fixes #25816 PR Close #25817
This commit is contained in:
parent
379e8c5e19
commit
21009b06a1
|
@ -253,7 +253,7 @@ describe('compiler compliance: styling', () => {
|
||||||
template: function MyComponent_Template(rf, $ctx$) {
|
template: function MyComponent_Template(rf, $ctx$) {
|
||||||
if (rf & 1) {
|
if (rf & 1) {
|
||||||
$r3$.ɵelementStart(0, "div");
|
$r3$.ɵelementStart(0, "div");
|
||||||
$r3$.ɵelementStyling(null, null, $r3$.ɵzss);
|
$r3$.ɵelementStyling(null, null, $r3$.ɵdefaultStyleSanitizer);
|
||||||
$r3$.ɵelementEnd();
|
$r3$.ɵelementEnd();
|
||||||
}
|
}
|
||||||
if (rf & 2) {
|
if (rf & 2) {
|
||||||
|
@ -310,7 +310,7 @@ describe('compiler compliance: styling', () => {
|
||||||
template: function MyComponent_Template(rf, $ctx$) {
|
template: function MyComponent_Template(rf, $ctx$) {
|
||||||
if (rf & 1) {
|
if (rf & 1) {
|
||||||
$r3$.ɵelementStart(0, "div", $e0_attrs$);
|
$r3$.ɵelementStart(0, "div", $e0_attrs$);
|
||||||
$r3$.ɵelementStyling(null, $e0_styling$, $r3$.ɵzss);
|
$r3$.ɵelementStyling(null, $e0_styling$, $r3$.ɵdefaultStyleSanitizer);
|
||||||
$r3$.ɵelementEnd();
|
$r3$.ɵelementEnd();
|
||||||
}
|
}
|
||||||
if (rf & 2) {
|
if (rf & 2) {
|
||||||
|
@ -318,7 +318,7 @@ describe('compiler compliance: styling', () => {
|
||||||
$r3$.ɵelementStylingProp(0, 1, $ctx$.myWidth);
|
$r3$.ɵelementStylingProp(0, 1, $ctx$.myWidth);
|
||||||
$r3$.ɵelementStylingProp(0, 2, $ctx$.myHeight);
|
$r3$.ɵelementStylingProp(0, 2, $ctx$.myHeight);
|
||||||
$r3$.ɵelementStylingApply(0);
|
$r3$.ɵelementStylingApply(0);
|
||||||
$r3$.ɵelementAttribute(0, "style", $r3$.ɵbind("border-width: 10px"), $r3$.ɵzs);
|
$r3$.ɵelementAttribute(0, "style", $r3$.ɵbind("border-width: 10px"), $r3$.ɵsanitizeStyle);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -369,7 +369,7 @@ describe('compiler compliance: styling', () => {
|
||||||
template: function MyComponent_Template(rf, ctx) {
|
template: function MyComponent_Template(rf, ctx) {
|
||||||
if (rf & 1) {
|
if (rf & 1) {
|
||||||
$r3$.ɵelementStart(0, "div");
|
$r3$.ɵelementStart(0, "div");
|
||||||
$r3$.ɵelementStyling(null, _c0, $r3$.ɵzss);
|
$r3$.ɵelementStyling(null, _c0, $r3$.ɵdefaultStyleSanitizer);
|
||||||
$r3$.ɵelementEnd();
|
$r3$.ɵelementEnd();
|
||||||
}
|
}
|
||||||
if (rf & 2) {
|
if (rf & 2) {
|
||||||
|
@ -529,7 +529,7 @@ describe('compiler compliance: styling', () => {
|
||||||
}
|
}
|
||||||
if (rf & 2) {
|
if (rf & 2) {
|
||||||
$r3$.ɵelementAttribute(0, "class", $r3$.ɵbind("round"));
|
$r3$.ɵelementAttribute(0, "class", $r3$.ɵbind("round"));
|
||||||
$r3$.ɵelementAttribute(0, "style", $r3$.ɵbind("height:100px"), $r3$.ɵzs);
|
$r3$.ɵelementAttribute(0, "style", $r3$.ɵbind("height:100px"), $r3$.ɵsanitizeStyle);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -193,10 +193,12 @@ export class Identifiers {
|
||||||
};
|
};
|
||||||
|
|
||||||
// sanitization-related functions
|
// sanitization-related functions
|
||||||
static sanitizeHtml: o.ExternalReference = {name: 'ɵzh', moduleName: CORE};
|
static sanitizeHtml: o.ExternalReference = {name: 'ɵsanitizeHtml', moduleName: CORE};
|
||||||
static sanitizeStyle: o.ExternalReference = {name: 'ɵzs', moduleName: CORE};
|
static sanitizeStyle: o.ExternalReference = {name: 'ɵsanitizeStyle', moduleName: CORE};
|
||||||
static defaultStyleSanitizer: o.ExternalReference = {name: 'ɵzss', moduleName: CORE};
|
static defaultStyleSanitizer:
|
||||||
static sanitizeResourceUrl: o.ExternalReference = {name: 'ɵzr', moduleName: CORE};
|
o.ExternalReference = {name: 'ɵdefaultStyleSanitizer', moduleName: CORE};
|
||||||
static sanitizeScript: o.ExternalReference = {name: 'ɵzc', moduleName: CORE};
|
static sanitizeResourceUrl:
|
||||||
static sanitizeUrl: o.ExternalReference = {name: 'ɵzu', moduleName: CORE};
|
o.ExternalReference = {name: 'ɵsanitizeResourceUrl', moduleName: CORE};
|
||||||
|
static sanitizeScript: o.ExternalReference = {name: 'ɵsanitizeScript', moduleName: CORE};
|
||||||
|
static sanitizeUrl: o.ExternalReference = {name: 'ɵsanitizeUrl', moduleName: CORE};
|
||||||
}
|
}
|
||||||
|
|
|
@ -102,10 +102,10 @@ export const angularCoreEnv: {[name: string]: Function} = {
|
||||||
'ɵembeddedViewStart': r3.embeddedViewStart,
|
'ɵembeddedViewStart': r3.embeddedViewStart,
|
||||||
'ɵembeddedViewEnd': r3.embeddedViewEnd,
|
'ɵembeddedViewEnd': r3.embeddedViewEnd,
|
||||||
|
|
||||||
'ɵzh': sanitization.sanitizeHtml,
|
'ɵsanitizeHtml': sanitization.sanitizeHtml,
|
||||||
'ɵzs': sanitization.sanitizeStyle,
|
'ɵsanitizeStyle': sanitization.sanitizeStyle,
|
||||||
'ɵzss': sanitization.defaultStyleSanitizer,
|
'ɵdefaultStyleSanitizer': sanitization.defaultStyleSanitizer,
|
||||||
'ɵzr': sanitization.sanitizeResourceUrl,
|
'ɵsanitizeResourceUrl': sanitization.sanitizeResourceUrl,
|
||||||
'ɵzc': sanitization.sanitizeScript,
|
'ɵsanitizeScript': sanitization.sanitizeScript,
|
||||||
'ɵzu': sanitization.sanitizeUrl
|
'ɵsanitizeUrl': sanitization.sanitizeUrl
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue