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: |
Description
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
Component: | unfiled → manipulation |
---|---|
Milestone: | None → 1.next |
Owner: | set to Rick Waldron |
Priority: | undecided → high |
Status: | new → assigned |
comment:2 Changed 11 years ago by
comment:3 Changed 11 years ago by
@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
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
Keywords: | ie7 added |
---|
comment:6 Changed 10 years ago by
Confirming that this still exists. http://jsfiddle.net/rwaldron/C7Ymd/
comment:7 Changed 10 years ago by
Resolution: | → notabug |
---|---|
Status: | assigned → closed |
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.
git bisect identified this commit: https://github.com/jquery/jquery/commit/6c2a501de40a5f6b3ad382e2d309e5a10fce04d0