Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid syntax of spectrum-icons-color.js #313

Open
mems opened this issue Aug 24, 2023 · 0 comments
Open

Invalid syntax of spectrum-icons-color.js #313

mems opened this issue Aug 24, 2023 · 0 comments

Comments

@mems
Copy link

mems commented Aug 24, 2023

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 withdata-coral-icons-external equal to 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">

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)

@mems mems mentioned this issue Aug 24, 2023
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant