Skip to content

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

@mems

Description

@mems

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions