angular-cn/packages/common/test
Jason Aden e8768acacc fix(common): escape query selector used when anchor scrolling (#29577)
When an anchor scroll happens, we run document.querySelector. This value can be taken directly from the user. Therefore it's possible to throw an error on scrolling, which can cause the application to fail.

This PR escapes the selector before using it.

Related to #28193
[Internal discussion](https://groups.google.com/a/google.com/forum/#!topic/angular-users/d82GHfmRKLc)

PR Close #29577
2019-03-29 10:39:38 -07:00
..
directives fix(ivy): ViewContainerRef.destroy should properly clean the DOM (#29414) 2019-03-22 13:13:12 -07:00
i18n test(ivy): run common tests with ivy on ci (#27071) 2018-11-13 10:59:55 -08:00
location test(ivy): run common tests with ivy on ci (#27071) 2018-11-13 10:59:55 -08:00
pipes fix(common): KeyValuePipe should return empty array for empty objects (#27258) 2018-12-14 15:19:13 -08:00
BUILD.bazel 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
common_module_spec.ts test(ivy): run common tests with ivy on ci (#27071) 2018-11-13 10:59:55 -08:00
cookie_spec.ts build: remove `main()` from specs (#21053) 2017-12-22 13:10:51 -08:00
spies.ts build: fix file paths after moving modules/@angular/* to packages/* 2017-03-08 16:29:28 -08:00
viewport_scroller_spec.ts fix(common): escape query selector used when anchor scrolling (#29577) 2019-03-29 10:39:38 -07:00