Bug Tracker

Modify

Ticket #10776 (closed bug: invalid)

Opened 18 months ago

Last modified 13 months ago

TypeError: 'undefined' is not a function (evaluating 'elem.nodeName.toLowerCase()') [jquery.js:1904]

Reported by: skyer.tw@… Owned by:
Priority: low Milestone: None
Component: data Version: 1.7
Keywords: Cc:
Blocking: Blocked by:

Description

jQuery version: 1.7

It raise this error when I try to call tab UI function - tabs.

If add the error handling here and the tabs function works well.

    // A method for determining if a DOM node can handle the data expando
    acceptData: function( elem ) {
        if ( elem.nodeName ) {
            var match = false;
            if (typeof elem.nodeName.toLowerCase != 'undefined')
                match = jQuery.noData[ elem.nodeName.toLowerCase() ];

            if ( match ) {
                return !(match === true || elem.getAttribute("classid") !== match);
            }
        }

        return true;
    }

Change History

comment:1 Changed 18 months ago by timmywil

  • Priority changed from undecided to low
  • Resolution set to invalid
  • Status changed from new to closed
  • Component changed from unfiled to data

Thanks for taking the time to contribute to the jQuery project! Please submit a bug report with a reduced test case from  http://jsfiddle.net to the  jQuery UI bug tracker for issues pertaining to jQuery UI. Requiring a check for the presence of toLowerCase() is an indication that something else is going on here.

comment:2 Changed 13 months ago by anonymous

Hi thanks for this help. I applied it and voila it worked

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.