Skip to main content

Bug Tracker

Side navigation

#11629 closed bug (invalid)

Opened April 24, 2012 07:12AM UTC

Closed May 08, 2012 08:14AM UTC

Problem with ie9 and double find selector using

Reported by: idangozlan@gmail.com Owned by: idangozlan@gmail.com
Priority: undecided Milestone: None
Component: unfiled Version: 1.7.2
Keywords: Cc:
Blocked by: Blocking:
Description

Please notice that there is no element when im trying using img.item selector but when im trying .item its find.

IE9 console:

>> $('.outfits  .outfit:first').find('.outfit .main').html(); 
"
			<div class="underfitter"></div>
			<div style="left: 59px; top: 4px;" class="container cat-1 rotate-right" rel="cat-1"><img onerror="imgBroken(this);" class="idan item " src="*" rel="item-493" data-cat-id="2" largePic="*" smallPic="*" tries="0" picstatus="large"></div>
			<div class="container hidden cat-2" rel="cat-2"></div>
			<div style="left: 12px; top: 89px;" class="container cat-3 rotate-left" rel="cat-3"><img onerror="imgBroken(this);" class="idan item " src="*" rel="item-559" data-cat-id="4" largePic="*" smallPic="*" tries="0" picstatus="large"></div>
			<div class="container hidden cat-4" rel="cat-4"></div>
			<div class="container hidden cat-5" rel="cat-5"></div>
			<div class="misc-slider">
				<ul><li class="js-hover apply-resize resize-spacing"><img onerror="imgBroken(this);" class="idan item " src="*" rel="item-717" data-cat-id="6" largePic="*" smallPic="*" tries="0" picstatus="large"></li><li class="js-hover apply-resize resize-spacing"><img onerror="imgBroken(this);" class="idan item " src="*" rel="item-886" data-cat-id="6" largePic="*" smallPic="*" tries="0" picstatus="large"></li><li class="js-hover apply-resize resize-spacing"><img onerror="imgBroken(this);" class="idan item " src="" rel="item-884" data-cat-id="6" largePic="" smallPic="" tries="0" picstatus="large"></li></ul>
			</div>
			<div class="like js-tooltip active" title="Not loving it!" rel="outfit-2"><img style="margin-top: -40px;" src="/media/images/like.png"></div>
			<div class="more js-tooltip js-sprite-click" title="Click to see more details" rel="outfit-2"><img src="/media/images/down.png"></div>
		" 
>> $('.outfits  .outfit:first').find('.outfit .main').find('img.item').length 
0 
>> $('.outfits  .outfit:first').find('.outfit .main').find('.item').length 
8 
>> $('.outfits  .outfit:first').find('.outfit .main').find('img').length 
12 

Attachments (0)
Change History (2)

Changed April 24, 2012 07:54AM UTC by sindresorhus comment:1

owner: → idangozlan@gmail.com
status: newpending

Thanks for taking the time to contribute to the jQuery project! Please provide a complete reduced test case on jsFiddle to help us assess your ticket.

Additionally, be sure to test against the jQuery Edge version to ensure the issue still exists. To get you started, use this boilerplate: http://jsfiddle.net/FrKyN/ Open the link and click to "Fork" (in the top menu) to get started.

Changed May 08, 2012 08:14AM UTC by trac-o-bot comment:2

resolution: → invalid
status: pendingclosed

Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!