Bug Tracker

Opened 8 years ago

Closed 8 years ago

#10065 closed bug (invalid)

.find() function error when i use css :before

Reported by: eggprojec@… Owned by: eggprojec@…
Priority: low Milestone: None
Component: selector Version: 1.6.2
Keywords: Cc:
Blocked by: Blocking:

Description

<li><a href="#" class="user_widget_last_purchase_log_button">Utolsó rendeléseid</a><div class="user_widget_last_purchase_log_div" style="display: block; "><ul><li class="user_widget_last_purchase_item_group_li" style="display: list-item; ">2011.08.16:<ul><li class="user_widget_last_purchase_item_name">Csirkés</li><li class="user_widget_last_purchase_item_name">Gesztenyepüré</li></ul></li><li class="user_widget_last_purchase_item_group_li" style="display: list-item; ">2011.08.16:<ul><li class="user_widget_last_purchase_item_name">Csirkés</li></ul></li><li class="user_widget_last_purchase_item_group_li" style="display: list-item; ">2011.08.16:<ul><li class="user_widget_last_purchase_item_name">Csirkés</li></ul></li></ul></div></li>

css: .user_widget_table .user_widget_last_purchase_log_div > ul > li > ul > li:before {

content: '- ';

}

jQuery('.user_widget_last_purchase_log_button').click(function(event)

{

event.stopPropagation(); var elem = jQuery(this).next('.user_widget_last_purchase_log_div'); if(elem.css('display') == "none") {

elem.slideToggle('slow',function() {

jQuery(this).find('.user_widget_last_purchase_item_group_li').each(function() {

jQuery(this).slideToggle('slow');

});

});

} else {

var child = elem.find('.user_widget_last_purchase_item_group_li'); var childLength = child.length; var i = 0; child.each(function() {

if(i == (childLength-1)) {

jQuery(this).slideToggle('slow',function() {

elem.slideToggle('slow');

});

} else {

jQuery(this).slideToggle('slow');

} i++;

});

} return false;

});


BUG => jQuery(this).find('.user_widget_last_purchase_item_group_li') result errorType unexpected_eos sorry little speak english :{

Change History (3)

comment:1 Changed 8 years ago by Rick Waldron

Component: unfiledselector
Owner: set to eggprojec@…
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.

comment:2 Changed 8 years ago by anonymous

Sorry, yesterday do not work in Chrome, but today work ... i dont understand it :{

thank you for your response

comment:3 Changed 8 years ago by timmywil

Priority: undecidedlow
Resolution: invalid
Status: pendingclosed

Closing per OP's latest comment.

Note: See TracTickets for help on using tickets.