无法解决jquery IE 7/8脚本3成员未找到错误

Sid*_*dey 7 jquery jquery-mobile

我的网络应用程序在这里运行:URL 我使用jquery版本1.7.1.min.js即浏览器,我收到IE 7和8的以下错误.

错误详情:

SCRIPT3: Member not found.

jquery-1.7.0.min.js, line 2 character 30982
Run Code Online (Sandbox Code Playgroud)

我也发现它e.nodeValue是null,你可以在附图中看到.在此输入图像描述.但是,相同的代码适用于IE 9和10.

在浏览代码时,我发现以下代码不能运行ie6/7.任何帮助如何摆脱这个错误?

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

    fixSpecified = {
        name: true,
        id: true
    };

    // 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;
            ret = elem.getAttributeNode( name );
            return ret && ( fixSpecified[ name ] ? ret.nodeValue !== "" : ret.specified ) ?
                ret.nodeValue :
                undefined;
        },
        set: function( elem, value, name ) {
            // Set the existing or create a new attribute node
            var ret = elem.getAttributeNode( name );
            if ( !ret ) {
                ret = document.createAttribute( name );
                elem.setAttributeNode( ret );
            }
            return ( ret.nodeValue = value + "" );
        }
    };
Run Code Online (Sandbox Code Playgroud)

jme*_*era 0

放弃。

不支持IE 7/8。为什么要支持一个濒临灭绝的物种? 谷歌很久以前就决定他们只支持最新的,为什么你应该做任何不同的事情呢?