Bug Tracker

Modify

Ticket #9110 (closed bug: duplicate)

Opened 2 years ago

Last modified 2 years ago

jQuery.support.appendCheck causes infinite loop in Windows Gadgets

Reported by: mike@… Owned by:
Priority: high Milestone: 1.next
Component: manipulation Version: 1.6
Keywords: Cc:
Blocking: Blocked by:

Description

I know you guys don't support Windows 7 Gadgets but I thought I would give you a heads up in case this is something you want to document.

I've found calling $(element).append(elements) in code that runs in Windows 7 sidebar gadgets can cause the "clean" function in jQuery core to loop infinitely. The section where it gets stuck in clean is:

        // Resets defaultChecked for any radios and checkboxes
        // about to be appended to the DOM in IE 6/7 (#8060)
        var len;
        if (!jQuery.support.appendChecked) {
          if (elem[0] && typeof (len = elem.length) === "number") {
            for (i = 0; i < len; i++) {
              findInputs(elem[i]);
            }
          } else {
            findInputs(elem);
          }
        }

I was able to fix my problem by adding the following to my script:

jQuery.support.appendChecked = true;

Not sure why this works but it fixed my problem.

  • Mike

Change History

comment:1 Changed 2 years ago by timmywil

  • Priority changed from undecided to high
  • Resolution set to duplicate
  • Status changed from new to closed
  • Component changed from unfiled to manipulation

comment:2 Changed 2 years ago by timmywil

Duplicate of #9072.

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.