Modify ↓
Ticket #3315 (closed bug: duplicate)
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
Change History
Changed 5 years ago by raid_ox
-
attachment
ie7bug.html
added
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

Test Case