Skip to content

setAttribute incompatible with Content-Security-Policy without unsafe-inlineΒ #811

Open
@Derkades

Description

@Derkades

In a few cases, it seems that ToastUI chart uses elem.setAttribute("style","a: b") instead of elem.style.a = b. I don't know if this has any advantage, but setAttribute requires style-src unsafe-inline while .style works fine with a strict Content-Security-Policy.

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