Hello
The liQuotes.js plugin (which replaces quotes) is connected before </ body>:
$(document).ready(function(){ jQuery.fn.liQuotes = function(options){ return this.each(function(){ htmlreplace($(this)); function htmlreplace(element){ if (!element) element = document.body; var nodes = $(element).contents().each(function () { if (this.nodeType == Node.TEXT_NODE) { var result = $(this).text().replace(/\x27/g, '\x22').replace(/(\w)\x22(\w)/g, '$1\x27$2').replace(/(^)\x22(\s)/g, '$1»$2').replace(/(^|\s|\()"/g, "$1«").replace(/"(\;|\!|\?|\:|\.|\,|$|\)|\s)/g, "»$1") $(this).after(result).remove(); } else { htmlreplace(this); }; }); }; }); }; $('.content').liQuotes(); }); $(document).ajaxStop(function() { $('.cert-bg').liQuotes(); $('.logo-space').liQuotes(); $('.search-space').liQuotes(); $('.partners-bg').liQuotes(); $('.video-blog').liQuotes(); $('.project-bg').liQuotes(); }); So, in all browsers, except for IE, the code works correctly (when the page loads, quotes are replaced, in the case of ajax, the query is similar - the code works in the selected elements). But in IE, the code does not work when the page loads. BUT works great with ajax request. Disabled all other js codes, swapped the startup code, changed it to onload - it does not work.
Please help - what to fix to get IE code when loading the page?
$(document).ready- why additional nesting. - Goncharov Alexander