Skip to main content

Bug Tracker

Side navigation

#11487 closed bug (duplicate)

Opened March 19, 2012 02:44PM UTC

Closed March 20, 2012 12:05AM UTC

Last modified March 20, 2012 12:05AM UTC

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/

Attachments (0)
Change History (3)

Changed March 19, 2012 10:55PM UTC by addyosmani comment:1

component: unfiledeffects
owner: → 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).

Changed March 20, 2012 12:05AM UTC by rwaldron comment:2

resolution: → duplicate
status: pendingclosed

Changed March 20, 2012 12:05AM UTC by rwaldron comment:3

Duplicate of #11249.