I read almost every SO question about
Uncaught RangeError: Maximum call stack size exceeded.
but non worked for me.
My problem is that I'm changing some div
text after loading it, which is working with me. However, the console is displaying the Uncaught RangeError
error.
this is my JS:
<script type="text/javascript">
$('#report-error').on("DOMNodeInserted DOMCharacterDataModified" ,function(){
$('#report-error').text("error happened");
});
</script>
and this is my HTML after the jquery had been applied:
<div id="report-error" class="report-div error"
style="display: block;">error happened
</div>
Any help would be appreciated.