angular-cn/packages
George Kalpakas 262ba67525 fix(core): traverse and sanitize content of unsafe elements (#28804)
In the past, the sanitizer would remove unsafe elements, but still
traverse and sanitize (and potentially preserve) their content. This was
problematic in the case of `<style></style>` tags, whose content would
be converted to HTML text nodes.

In order to fix this, the sanitizer's behavior was changed in #25879 to
ignore the content of _all_ unsafe elements. While this fixed the
problem with `<style></style>` tags, it unnecessarily removed the
contents for _any_ unsafe element. This was an unneeded breaking change.

This commit partially restores the old sanitizer behavior (namely
traversing content of unsafe elements), but introduces a list of
elements whose content should not be traversed if the elements
themselves are considered unsafe. Currently, this list contains `style`,
`script` and `template`.

Related to #25879 and #26007.

Fixes #28427

PR Close #28804
2019-02-26 13:32:09 -08:00
..
animations build: enable bundle_dts for a number of packages (#28726) 2019-02-19 16:30:38 -08:00
bazel feat(bazel): add ts_config extending support for ng_module (#21883) 2019-02-26 02:01:37 +00:00
benchpress feat: optionally save complete performance log in chrome benchpress tests (#27551) 2019-02-05 23:35:32 -05:00
common build(bazel): run a number of web tests with karma_web_test in saucelabs in CircleCI (#27721) 2019-02-22 13:07:08 -08:00
compiler fix(ivy): ngtsc should correctly bind to context in nested template with many bindings (#28982) 2019-02-26 11:54:13 -08:00
compiler-cli fix(ivy): ngtsc should correctly bind to context in nested template with many bindings (#28982) 2019-02-26 11:54:13 -08:00
core fix(core): traverse and sanitize content of unsafe elements (#28804) 2019-02-26 13:32:09 -08:00
docs refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
elements build: enable bundle_dts for a number of packages (#28726) 2019-02-19 16:30:38 -08:00
examples build: update to rules_typescript 0.25.1 (#28625) 2019-02-21 07:46:21 -08:00
forms build(bazel): run a number of web tests with karma_web_test in saucelabs in CircleCI (#27721) 2019-02-22 13:07:08 -08:00
http build(bazel): run a number of web tests with karma_web_test in saucelabs in CircleCI (#27721) 2019-02-22 13:07:08 -08:00
language-service fix(language-service): Fix completions for input/output with alias (#28904) 2019-02-22 12:02:18 -08:00
platform-browser build: enable bundle_dts for a number of packages (#28726) 2019-02-19 16:30:38 -08:00
platform-browser-dynamic build: update to rules_typescript 0.25.1 (#28625) 2019-02-21 07:46:21 -08:00
platform-server build: enable bundle_dts for a number of packages (#28726) 2019-02-19 16:30:38 -08:00
platform-webworker build: enable bundle_dts for a number of packages (#28726) 2019-02-19 16:30:38 -08:00
platform-webworker-dynamic build: enable bundle_dts for a number of packages (#28726) 2019-02-19 16:30:38 -08:00
private/testing build: run playground e2e examples with bazel (#28490) 2019-02-04 16:51:11 -05:00
router docs(router): reword relativeLinkResolution docs to not mention version numbers (#26991) 2019-02-22 14:35:54 -08:00
service-worker build: enable bundle_dts for a number of packages (#28726) 2019-02-19 16:30:38 -08:00
upgrade build: enable bundle_dts for a upgrade package (#28642) 2019-02-21 23:56:31 -08:00
BUILD.bazel build: update to rules_typescript 0.25.1 (#28625) 2019-02-21 07:46:21 -08:00
README.md Revert "docs: Remove unneeded file (#18106)" 2017-07-20 16:46:47 -05:00
empty.ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
goog.d.ts test(ivy): add bundling test `todo_i18n` (#27420) 2018-12-04 19:59:12 -08:00
license-banner.txt build: bump year (#27880) 2019-01-11 11:15:59 -08:00
system.d.ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
tsconfig-build.json build: update to rules_typescript 0.25.1 (#28625) 2019-02-21 07:46:21 -08:00
tsconfig-test.json build: update to rules_typescript 0.25.1 (#28625) 2019-02-21 07:46:21 -08:00
tsconfig.json build: switch example e2e tests to bazel (#28402) 2019-01-28 19:21:09 -08:00
types.d.ts build: switch to typescript's es2015 typings (#28570) 2019-02-06 14:17:55 -05:00

README.md

Angular

The sources for this package are in the main Angular repo. Please file issues and pull requests against that repo.

License: MIT