Open mems opened 1 year ago
Do not throw syntax error
Throw "Uncaught SyntaxError: Invalid or unexpected token (at spectrum-icons-color.js:1:61)"
New lines is injected inside a single quote string literal
Inject in a page spectrum lib withdata-coral-icons-external equal to js:
data-coral-icons-external
js
<script src="/path/to/@adobe/coral-spectrum/dist/js/coral.min.js" data-coral-icons-external="js" defer></script> <link rel="stylesheet" href="/path/to/@adobe/coral-spectrum/dist/css/coral.min.css">
4.15.23
Sample code in Playground
Expected Behavior
Do not throw syntax error
Actual Behavior
Throw "Uncaught SyntaxError: Invalid or unexpected token (at spectrum-icons-color.js:1:61)"
New lines is injected inside a single quote string literal
Reproduce Scenario (including but not limited to)
Steps to Reproduce
Inject in a page spectrum lib with
data-coral-icons-external
equal tojs
:Browser name/version/os (ie Chrome Version 62.0.3202.94 (Official Build) (64-bit) MacOS)
Coral Spectrum version
4.15.23
Sample Code that illustrates the problem (use the Playground if possible)
Sample code in Playground
Screenshots (if applicable)