Bug Tracker

Modify

Ticket #11056 (closed bug: notabug)

Opened 17 months ago

Last modified 6 months ago

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:
Blocking: Blocked by:

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/

Change History

comment:1 Changed 17 months ago by rwaldron

  • Owner set to rwaldron
  • Priority changed from undecided to high
  • Status changed from new to assigned
  • Component changed from unfiled to manipulation
  • Milestone changed from None to 1.next

comment:3 Changed 11 months 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 months 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 10 months ago by dmethvin

  • Keywords ie7 added

comment:6 Changed 8 months ago by rwaldron

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

comment:7 Changed 6 months ago by dmethvin

  • Status changed from assigned to closed
  • Resolution set to notabug

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.

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.