jQuery-1.9.1.js在IE 7上崩溃-javascript运行时错误,未找到成员

jQuery-1.9.1.js在IE 7上崩溃-javascript运行时错误,未找到成员,jquery,asp.net-mvc-4,internet-explorer-7,jquery-1.9,Jquery,Asp.net Mvc 4,Internet Explorer 7,Jquery 1.9,我有一个asp.net mvc4 web应用程序。在开发工具中,当我切换到IE7时,当我转到MVC4中internet应用程序模板附带的默认登录页面时,jquery-1.9.1.js崩溃 jquery-1.9.1.js在第2582行崩溃,一段代码: // IE6/7 do not support getting/setting some attributes with get/setAttribute if ( !getSetAttribute ) { // Use this for

我有一个asp.net mvc4 web应用程序。在开发工具中,当我切换到IE7时,当我转到MVC4中internet应用程序模板附带的默认登录页面时,jquery-1.9.1.js崩溃

jquery-1.9.1.js在第2582行崩溃,一段代码:

// IE6/7 do not support getting/setting some attributes with get/setAttribute
if ( !getSetAttribute ) {

    // Use this for any attribute in IE6/7
    // This fixes almost every IE6/7 issue
    nodeHook = jQuery.valHooks.button = {
        get: function( elem, name ) {
            var ret = elem.getAttributeNode( name );
            return ret && ( name === "id" || name === "name" || name === "coords" ? ret.value !== "" : ret.specified ) ?
                ret.value :
                undefined;
        },
        set: function( elem, value, name ) {
            // Set the existing or create a new attribute node
            var ret = elem.getAttributeNode( name );
            if ( !ret ) {
                elem.setAttributeNode(
                    (ret = elem.ownerDocument.createAttribute( name ))
                );
            }

            ret.value = value += ""; <---- HERE IE 7 CRASHES!!!!!

            // Break association with cloned elements by also using setAttribute (#9646)
            return name === "value" || value === elem.getAttribute( name ) ?
                value :
                undefined;
        }
    };
ret.value为null,值为novalidate

错误引发类似于: javascript运行时错误:未找到成员

如果我从IE10执行,然后切换到兼容模式,同样的错误也会发生

有人能告诉我怎么解决这个问题吗

第一次尝试 我已使用以下元来确保正在使用最新的渲染引擎:

<meta http-equiv="X-UA-Compatible" content="IE=edge">
另见下页:

但当使用纯IE 7浏览器时,它似乎不起作用

有什么想法吗

<meta http-equiv="X-UA-Compatible" content="IE=edge">