File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
packages/auth/src/platform_browser Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ _setExternalJSProvider({
126
126
const el = document . createElement ( 'script' ) ;
127
127
// FIXME: Do not use setAttribute, since it can lead to XSS. Instead, use the safevalues library to
128
128
// safely set an attribute for a sanitized trustedResourceUrl. Since the trustedResourceUrl
129
- // must be initialized from a template string literal, this could involve some heavy
129
+ // must be initialized from a template string literal, this could involve some heavy
130
130
// refactoring.
131
131
el . setAttribute ( 'src' , url ) ;
132
132
el . onload = resolve ;
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ describe('platform-browser/load_js', () => {
44
44
loadJS ( url : string ) : Promise < Event > {
45
45
return new Promise ( ( resolve , reject ) => {
46
46
const el = document . createElement ( 'script' ) ;
47
- // FIXME: Do not use setAttribute, as this can lead to XSS. Instead, use the safevalues
47
+ // FIXME: Do not use setAttribute, as this can lead to XSS. Instead, use the safevalues
48
48
// library, or get an exception for tests.
49
49
el . setAttribute ( 'src' , url ) ;
50
50
el . onload = resolve ;
@@ -67,7 +67,7 @@ describe('platform-browser/load_js', () => {
67
67
68
68
// eslint-disable-next-line @typescript-eslint/no-floating-promises
69
69
_loadJS ( 'http://localhost/url' ) ;
70
- // FIXME: Do not use setAttribute, as this can lead to XSS. Instead, use the safevalues
70
+ // FIXME: Do not use setAttribute, as this can lead to XSS. Instead, use the safevalues
71
71
// library, or get an exception for tests.
72
72
expect ( el . setAttribute ) . to . have . been . calledWith (
73
73
'src' ,
You can’t perform that action at this time.
0 commit comments