Title: content.get(&#8230;).style.removeAttribute is not a function
Last modified: August 31, 2016

---

# content.get(…).style.removeAttribute is not a function

 *  Resolved [triipriit](https://wordpress.org/support/users/triipriit/)
 * (@triipriit)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/contentgetstyleremoveattribute-is-not-a-function/)
 * When using the latest jQuery version and defer loading the script, I get an error
   saying:
    `Uncaught TypeError: content.get(...).style.removeAttribute is not a
   function`
 * This is referring to lines 608-611 in jquery.fancybox-1.3.7.js
 *     ```
       if (!$.support.opacity) {
       				content.get(0).style.removeAttribute('filter');
       				wrap.get(0).style.removeAttribute('filter');
       			}
       ```
   
 * Maybe you could update these to newer jQuery methods in the next release.
 * [https://wordpress.org/plugins/easy-fancybox/](https://wordpress.org/plugins/easy-fancybox/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [Rolf Allard van Hagen](https://wordpress.org/support/users/ravanh/)
 * (@ravanh)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/contentgetstyleremoveattribute-is-not-a-function/#post-6998593)
 * Which jQuery version are you using?
 *  Thread Starter [triipriit](https://wordpress.org/support/users/triipriit/)
 * (@triipriit)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/contentgetstyleremoveattribute-is-not-a-function/#post-6998601)
 * 2.2.0
 *  [Rolf Allard van Hagen](https://wordpress.org/support/users/ravanh/)
 * (@ravanh)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/contentgetstyleremoveattribute-is-not-a-function/#post-6998626)
 * And why not use just the one included with WordPress?
 *  Thread Starter [triipriit](https://wordpress.org/support/users/triipriit/)
 * (@triipriit)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/contentgetstyleremoveattribute-is-not-a-function/#post-6998631)
 * I need it for some other components. Anyway, if it is possible, then it wouldn’t
   be bad if the script was compatible with newer jQuery as well?
 *  [Rolf Allard van Hagen](https://wordpress.org/support/users/ravanh/)
 * (@ravanh)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/contentgetstyleremoveattribute-is-not-a-function/#post-6998633)
 * It wouldn’t be bad no, but it would need a complete rewrite of the whole light
   box script… and it has already been done with fancyBox2 but that new version 
   has a licence that is incompatible with the WordPress.org rules so it cannot 
   be included with this plugin.
 * You could of course build it into your theme yourself and you would no longer
   have to depend on a plugin. See [http://fancyapps.com/fancybox/](http://fancyapps.com/fancybox/)
   for the jQuery2+ compatible stand-alone version 🙂

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘content.get(…).style.removeAttribute is not a function’ is closed to 
new replies.

 * ![](https://ps.w.org/easy-fancybox/assets/icon-256x256.png?rev=3188201)
 * [Firelight Lightbox](https://wordpress.org/plugins/easy-fancybox/)
 * [Support Threads](https://wordpress.org/support/plugin/easy-fancybox/)
 * [Active Topics](https://wordpress.org/support/plugin/easy-fancybox/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/easy-fancybox/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/easy-fancybox/reviews/)

## Tags

 * [jquery](https://wordpress.org/support/topic-tag/jquery/)
 * [typeerror](https://wordpress.org/support/topic-tag/typeerror/)

 * 5 replies
 * 2 participants
 * Last reply from: [Rolf Allard van Hagen](https://wordpress.org/support/users/ravanh/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/contentgetstyleremoveattribute-is-not-a-function/#post-6998633)
 * Status: resolved