Bug Tracker

Modify

Ticket #3315 (closed bug: duplicate)

Opened 5 years ago

Last modified 4 years ago

Strange jQuery attributes cause selector to fail in IE

Reported by: raid_ox Owned by:
Priority: major Milestone: 1.3
Component: selector Version: 1.2.6
Keywords: selector, internet explorer, ie, html() Cc:
Blocking: Blocked by:

Description

In internet explorer, using $('selector').html() will emit strange jquery attributes that sometimes can cause problem:

$('#test').html() <-- <li jQuery32491238934="2"><span jQuery32491238934="null" class="name>...

the problem is, when you need to insert those string back to html, the selector won't work properly.

I created a demo to demonstrate this problem:  http://code.riiv.net/demos/iebug.html

in ie, if you click get length, it will return 1, whereas in other browser 4.

any ideas?

Attachments

ie7bug.html Download (1.4 KB) - added by raid_ox 5 years ago.
Test Case

Change History

Changed 5 years ago by raid_ox

Test Case

comment:1 Changed 4 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to duplicate

This is a manifestation of #3254 so I'll close this ticket as a dup.

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.