Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/69.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 我的网站在ie8 HTML解析错误KB927917中无法显示结果_Javascript_Html_Internet Explorer 8_Jscript - Fatal编程技术网

Javascript 我的网站在ie8 HTML解析错误KB927917中无法显示结果

Javascript 我的网站在ie8 HTML解析错误KB927917中无法显示结果,javascript,html,internet-explorer-8,jscript,Javascript,Html,Internet Explorer 8,Jscript,该网站在其他浏览器和IE版本中加载良好,但在IE8中我遇到了这个问题 网页错误详细信息 用户代理:Mozilla/4.0(兼容;MSIE 8.0;Windows NT 6.1;WOW64;Trident/4.0;SLCC2;.NET CLR 2.0.50727;.NET CLR 3.5.30729;.NET CLR 3.0.30729;Media Center PC 6.0;InfoPath.3;.NET4.0C;.NET4.0E) 时间戳:2014年5月15日星期四11:48:37 UTC 消

该网站在其他浏览器和IE版本中加载良好,但在IE8中我遇到了这个问题

网页错误详细信息

用户代理:Mozilla/4.0(兼容;MSIE 8.0;Windows NT 6.1;WOW64;Trident/4.0;SLCC2;.NET CLR 2.0.50727;.NET CLR 3.5.30729;.NET CLR 3.0.30729;Media Center PC 6.0;InfoPath.3;.NET4.0C;.NET4.0E) 时间戳:2014年5月15日星期四11:48:37 UTC

消息:HTML分析错误:在关闭子元素之前无法修改父容器元素(KB927917) 行:0 字符:0 代码:0 URI:

你知道我如何解决这个问题吗

这也发生在其他使用ie8的计算机上

function B(a) {
    return document.getElementById(a)
}

function cf(a) {
    var b = new Date;
    b.setYear(b.getFullYear() + 1);
    Ka("openSections", a, b)
}

function Ga(a) {
    var b = String(document.cookie),
        c = b.indexOf(a + "=");
    if (c == -1) {
        return "";
    }
    var d = b.indexOf(";", c);
    return b.substring(c + a.length + 1, d == -1 ? b.length : d)
}

function Ja(a) {
    return unescape(Ga(a))
}

function Ka(a, b, c) {
    document.cookie = a + "=" + escape(b) + "; path=/" + (c ? "; expires=" + c.toGMTString() : "")
}

function La(a, b) {
    document.cookie = a + "=;expires=" + (new Date(0)).toGMTString() + ";path=/" + (b ? ";domain=" + b : "")
};

function ya(a,b) {
    if (a) {
        return RegExp("(^|\\s)" + b + "(\\s|$)").test(a.className)
    }
}

function xa(a,b) {
    if (a && !ya(a,b)) {
        a.className ? a.className += " " + b : a.className = b
    }
}

window.showAllRefinements = function(a) {
  xa(B(a),"showAll")
}

window.toggleRefineBy = function(a) {
    if (ya(B(a),"rbOpen")) {
        var b = B(a);
        if (b) {
            b.className="rbSection";
        }
    } else if (b = B(a)) {
        b.className="rbSection rbOpen";
    }
    b = Ja("openSections");
    b.match(":" + a + "(:|$)") == m ? b += ":" + a : b = b.replace(":"+a,"");
    cf(b)
};

window.delSearchCookie = function(a, b) {
    a || (a = "RQ");
    $.removeCookie('csrf_token');
    /*
    La(a, b);
    */
    var c = B("recentsearches");
    c && c.parentNode.removeChild(c)
}
jquery.cookie.js:

/*!
 * jQuery Cookie Plugin v1.3.1
 * https://github.com/carhartl/jquery-cookie
 *
 * Copyright 2013 Klaus Hartl
 * Released under the MIT license
 */
(function (factory) {
    if (typeof define === 'function' && define.amd) {
        // AMD. Register as anonymous module.
        define(['jquery'], factory);
    } else {
        // Browser globals.
        factory(jQuery);
    }
}(function ($) {

    var pluses = /\+/g;

    function raw(s) {
        return s;
    }

    function decoded(s) {
        return decodeURIComponent(s.replace(pluses, ' '));
    }

    function converted(s) {
        if (s.indexOf('"') === 0) {
            // This is a quoted cookie as according to RFC2068, unescape
            s = s.slice(1, -1).replace(/\\"/g, '"').replace(/\\\\/g, '\\');
        }
        try {
            return config.json ? JSON.parse(s) : s;
        } catch(er) {}
    }

    var config = $.cookie = function (key, value, options) {

        // write
        if (value !== undefined) {
            options = $.extend({}, config.defaults, options);

            if (typeof options.expires === 'number') {
                var days = options.expires, t = options.expires = new Date();
                t.setDate(t.getDate() + days);
            }

            value = config.json ? JSON.stringify(value) : String(value);

            return (document.cookie = [
                config.raw ? key : encodeURIComponent(key),
                '=',
                config.raw ? value : encodeURIComponent(value),
                options.expires ? '; expires=' + options.expires.toUTCString() : '', // use expires attribute, max-age is not supported by IE
                options.path    ? '; path=' + options.path : '',
                options.domain  ? '; domain=' + options.domain : '',
                options.secure  ? '; secure' : ''
            ].join(''));
        }

        // read
        var decode = config.raw ? raw : decoded;
        var cookies = document.cookie.split('; ');
        var result = key ? undefined : {};
        for (var i = 0, l = cookies.length; i < l; i++) {
            var parts = cookies[i].split('=');
            var name = decode(parts.shift());
            var cookie = decode(parts.join('='));

            if (key && key === name) {
                result = converted(cookie);
                break;
            }

            if (!key) {
                result[name] = converted(cookie);
            }
        }

        return result;
    };

    config.defaults = {};

    $.removeCookie = function (key, options) {
        if ($.cookie(key) !== undefined) {
            // Must not alter options, thus extending a fresh object...
            $.cookie(key, '', $.extend({}, options, { expires: -1 }));
            return true;
        }
        return false;
    };

}));
/*!
*jQuery Cookie插件v1.3.1
* https://github.com/carhartl/jquery-cookie
*
*版权所有2013 Klaus Hartl
*根据麻省理工学院许可证发布
*/
(功能(工厂){
if(typeof define=='function'&&define.amd){
//注册为匿名模块。
定义(['jquery'],工厂);
}否则{
//浏览器全局。
工厂(jQuery);
}
}(函数($){
var pluses=/\+/g;
函数原始值{
返回s;
}
已解码功能{
返回组件(替换(加上“,”);
}
已转换函数(个){
如果(s.indexOf(“”)==0){
//这是根据RFC2068,unescape引用的cookie
s=s.slice(1,-1)。替换(/\\\“/g,”)。替换(/\\\\\/g,“\\”);
}
试一试{
返回config.json?json.parse(s):s;
}捕获(er){}
}
var config=$.cookie=函数(键、值、选项){
//写
如果(值!==未定义){
options=$.extend({},config.defaults,options);
if(typeof options.expires==='number'){
var days=options.expires,t=options.expires=new Date();
t、 设置日期(t.getDate()+天);
}
value=config.json?json.stringify(值):字符串(值);
返回(document.cookie=[
config.raw?key:encodeURIComponent(key),
'=',
config.raw?值:encodeURIComponent(值),
options.expires?';expires='+options.expires.toutString():'',//使用expires属性,IE不支持最大年龄
options.path?';path='+options.path:“”,
options.domain?';domain='+options.domain:'',
options.secure?“;secure”:”
].加入(“”);
}
//阅读
var decode=config.raw?raw:已解码;
var cookies=document.cookie.split(“;”);
var result=key?未定义:{};
对于(变量i=0,l=cookies.length;i
尝试在
窗口中包装代码。onload
,如下所示:

window.onload = function() {

    //your code here

}
或者,如果您正在使用jQuery,您可以尝试:

$(document).ready(function() {

    //your code here

}

你可以发布你的代码,特别是你的JavaScript吗?也许问题类似于这里:这里是主要的JavaScript代码。