Skip to main content

Bug Tracker

Side navigation

#11056 closed bug (notabug)

Opened December 18, 2011 04:40PM UTC

Closed November 24, 2012 10:49PM UTC

1.7.1 incorrect length as result of manipulation in IE7*

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

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

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

http://jsfiddle.net/rwaldron/C7Ymd/

Attachments (0)
Change History (7)

Changed December 18, 2011 04:41PM UTC by rwaldron comment:1

component: unfiledmanipulation
milestone: None1.next
owner: → rwaldron
priority: undecidedhigh
status: newassigned

Changed December 18, 2011 11:55PM UTC by rwaldron comment:2

Changed July 05, 2012 07:55PM UTC by mikesherov comment:3

@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?

Changed July 05, 2012 09:41PM UTC by dmethvin comment:4

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.

Changed July 25, 2012 01:33AM UTC by dmethvin comment:5

keywords: → ie7

Changed September 17, 2012 02:13AM UTC by rwaldron comment:6

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

Changed November 24, 2012 10:49PM UTC by dmethvin comment:7

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.