angular-cn/packages/core/test/sanitization
Andrew Kushnir c3aa24c3f9 fix(ivy): sanitization for Host Bindings (#27939)
This commit adds sanitization for `elementProperty` and `elementAttribute` instructions used in `hostBindings` function, similar to what we already have in the `template` function. Main difference is the fact that for some attributes (like "href" and "src") we can't define which SecurityContext they belong to (URL vs RESOURCE_URL) in Compiler, since information in Directive selector may not be enough to calculate it. In order to resolve the problem, Compiler injects slightly different sanitization function which detects proper Security Context at runtime.

PR Close #27939
2019-01-08 17:17:04 -08:00
..
html_sanitizer_spec.ts fix(core): ignore comment nodes under unsafe elements (#25879) 2018-10-25 11:20:19 -07:00
sanatization_spec.ts fix(ivy): sanitization for Host Bindings (#27939) 2019-01-08 17:17:04 -08:00
style_sanitizer_spec.ts feat(ivy): provide sanitization methods which can be tree shaken (#22540) 2018-03-07 18:24:07 -08:00
url_sanitizer_spec.ts feat(ivy): provide sanitization methods which can be tree shaken (#22540) 2018-03-07 18:24:07 -08:00