UnsopportedError, IE11.0.26 mergeAttributes

UnsopportedError, IE11.0.26 mergeAttributes

GTCulbrethGTCulbreth Posts: 6Questions: 3Answers: 0

Hi All,

I am a web development contractor working at a government agency. We have just begun to experience issues with our pages and I believe it has to do with Internet Explorer 11.0.26 and jQuery DataTable. We are using jQuery v1.7 and DataTables 1.9, I know they are old but they did work with IE 11.0.25.

The javaScript (JS) fails with an “Unsupported Error” on the “mergeAttributes” method. This I believe is still included in the IE11 browser API.

Does anyone know what would cause this error and under what conditions?

Thanks for you assistance.

I am fairly new to using forums and I will update this post when I create a simple web page that can reproduce the error. The websites currently getting tis issue are not accessible to the public or anyone outside the agency firewall.

This question has an accepted answers - jump to answer

Answers

  • carranthuohill3carranthuohill3 Posts: 4Questions: 1Answers: 1
    Answer ✓

    Hi

    We are using jQuery 1.8. The workaround for this was changing the jQuery code to this:

    // mergeAttributes, in contrast, only merges back on the
    // original attributes, not the events
        try{
            if ( dest.mergeAttributes ) {
                dest.mergeAttributes( src );
            }
        } catch (exception) {
            for (var i=0; i < src.attributes.length; i++) {
                var attr = src.attributes[i];
                var attrName = attr.name.toLowerCase ();
                if (attrName != "id" && attrName != "name") {
                    dest.setAttribute (attr.name, attr.value);
                }
            }
        }
    

    I took this code from http://help.dottoro.com/ljfrdwjg.php
    Maybe it help you.

  • GTCulbrethGTCulbreth Posts: 6Questions: 3Answers: 0

    I'll try this. thanks

  • GTCulbrethGTCulbreth Posts: 6Questions: 3Answers: 0

    I have to do a bunch more testing but this seems to work well.

    Thanks.

This discussion has been closed.