Recently I updated my ASP.Net MVC4 project to upgrade to jQuery 1.9.1. But since then I am getting a strange error as soon as any page is loaded:
(Chrome) jquery-1.9.1.js:5823 Uncaught TypeError: Cannot call method 'createDocumentFragment' of null
(IE10) Unable to get property 'createDocumentFragment' of undefined or null reference jquery-1.9.1.js, line 5823 character 3
The 'document' parameter being passed to its parent function createSafeFragment( document ) is always null. The error is persistent in IE10 as well as Chrome. Below is how scripts are included in the layout:
<script src="/Scripts/jquery-1.9.1.js"></script> <script src="/Scripts/jquery-ui-1.10.2.js"></script> <script src="/Scripts/jquery.unobtrusive-ajax.js"></script> <script src="/Scripts/jquery.validate.js"></script> <script src="/Scripts/jquery.validate.unobtrusive.js"></script> <script src="/Scripts/bootstrap.js"></script>
I tried to trace the error by debugging the scripts but could not find the exact source.
Has anybody come across this with any breakthrough? Any help is appreciated.
UPDATE
jQuery Tooltip was conflicting with Bootstrap Tooltip. Changed the functionality to use Bootstrap and the error has gone.