Bug Tracker

Opened 11 years ago

Closed 10 years ago

#11056 closed bug (notabug)

1.7.1 incorrect length as result of manipulation in IE7*

Reported by: Rick Waldron Owned by: Rick Waldron
Priority: high Milestone: 1.next
Component: manipulation Version: 1.7.1
Keywords: ie7 Cc:
Blocked by: Blocking:


See: https://github.com/aFarkas/html5shiv/issues/17#issuecomment-3195205

jQuery('<div />').after('<span />').length // will return 1 (only div) not 2


Change History (7)

comment:1 Changed 11 years ago by Rick Waldron

Component: unfiledmanipulation
Milestone: None1.next
Owner: set to Rick Waldron
Priority: undecidedhigh
Status: newassigned

comment:3 Changed 11 years ago by mikesherov

@rwaldron, your fiddle seems to be reporting the correct results in chrome on all versions of jquery >1.6.4. Is this specific to a certain browser?

comment:4 Changed 11 years ago by dmethvin

I am soooo glad someone else has ticket-browser-blindness, happens to me about once a month. It says IE7 up there in the big letters. :) Does seem to be failing in IE7.

comment:5 Changed 11 years ago by dmethvin

Keywords: ie7 added

comment:6 Changed 10 years ago by Rick Waldron

Confirming that this still exists. http://jsfiddle.net/rwaldron/C7Ymd/

comment:7 Changed 10 years ago by dmethvin

Resolution: notabug
Status: assignedclosed

We've removed the magical ".after() adds to the collection if the elements are disconnected" behavior in 1.9 so this bug is invalid now. The upgrade guide will explain why.

Note: See TracTickets for help on using tickets.