How to find and fix spam script in wp themes and plugins

“No Lunch Is Ever Free, Someone Somewhere Has To Pay For It” absolutely correct!!!!
Be careful while selecting any free Premium WordPress Themes because the theme can be no doubt free but you don’t know if its spam script free too. Else you too will have to invest your time in researching the reasons like me or recovering your losses due to these scam scripts.
Continue reading “How to find and fix spam script in wp themes and plugins”

IE bug: Object doesn't support this action for "item"

As a web developer we have to write codes supported by maximum or all browsers.A few people love Internet Explorer,and our clients do not wan to skip ie users. Although there are many reason to hate the ie .but this strange reason added o my dictionary today :  Object doesn’t support this action.

I was testing a shopify site and in pre-installed theme there was a JavaScript function that add items in cart the word “item” causing this error of Object doesn’t support this action.
this function works well in other browser like Firefox and chrome but in Internet explorer it fails.after testing it by developer console of internet explorer I got this

ie_object

after a long search I found that item is reserved keyword for internet explorer, whether you are using internet explorer 8 ,ie 9 or ie 10 in any of your os xp vista ,window 7 or window8.
it is reserved keyword.you can’t use item as javascript variable.

so the possible solution of this is to remove all javascript variable item with some other like itemx or cart item

item is reserved keyword for internet explorer you can find the proof in this blog post

so next time you stuck with Object doesn’t support this action thing then check whether it is reserved keyword or not.