Click here to Skip to main content
15,891,253 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Use of Mutation Events is deprecated. Use MutationObserver instead.

This is the error that I am getting. Please help me out what to do?
My javascript and jquery are not working.
Posted
Comments
Richard MacCutchan 18-Jan-16 7:02am    
Do what the message tells you.
prapti.n3 18-Jan-16 10:16am    
how can i find where I have used mutation events in my code? I was not having this problem earlier. Plaese help me locate it.
Richard MacCutchan 18-Jan-16 11:16am    
Where and when does the message appear? That should tell you where it is.
prapti.n3 19-Jan-16 12:50pm    
It appears on the marquee tag. But a want the moving text in my website. I can't remove it.
Richard MacCutchan 19-Jan-16 13:03pm    
Sorry, but we really cannot guess what is happening with so little information.

1 solution

As Richard said, you need to do what the error tells you. You are using Mutation Events somewhere in your code. Those are not allowed anymore (deprecated). The error is telling you to change your Mutation Events code to use MutationObserver instead. If you are unfamiliar with the MutationObserver you can see documentation for it here, MutationObserver - Web APIs | MDN[^].
 
Share this answer
 
Comments
prapti.n3 18-Jan-16 10:13am    
how can i find where I have used mutation events in my code? I was not having this problem earlier. Plaese help me locate it.
ZurdoDev 18-Jan-16 10:23am    
Doesn't the error message point to a line of code?

If not, I suggest going through the documentation, https://developer.mozilla.org/en-US/docs/Web/Guide/Events/Mutation_events
prapti.n3 18-Jan-16 10:34am    
No. Its not showing. I have searched out all the events. None of them is present in my code. Suggest me something where to use mutation observer.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900