Bug Tracker

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#11487 closed bug (duplicate)

Some effects (like fadeOut) don't work on sites using a strict Content Security Policy (CSP)

Reported by: trhaynes Owned by: trhaynes
Priority: low Milestone: None
Component: effects Version: 1.7.1
Keywords: Cc:
Blocked by: Blocking:

Description

It looks like fadeOut() works by setting a temporary inline style. This doesn't work when CSP [1] disallows inline styles.

I suggest modifying the DOM directly instead (something like element.style.opacity = 0.5).

[1] http://www.w3.org/TR/CSP/

Change History (3)

comment:1 Changed 11 years ago by addyosmani

Component: unfiledeffects
Owner: set to trhaynes
Priority: undecidedlow
Status: newpending

Thanks for submitting a ticket to the jQuery bug tracker. Please provide us with a test case reproducing the issue you've described, ideally on http://jsfiddle.net. Please also ensure you've tested using the latest version of jQuery (jQuery Git/edge).

comment:2 Changed 11 years ago by Rick Waldron

Resolution: duplicate
Status: pendingclosed

comment:3 Changed 11 years ago by Rick Waldron

Duplicate of #11249.

Note: See TracTickets for help on using tickets.