Skip to main content

Bug Tracker

Side navigation

#5070 closed bug (duplicate)

Opened August 18, 2009 04:42PM UTC

Closed August 20, 2009 03:02AM UTC

parents() not working the same with Firefox 3.5.2

Reported by: rhorn Owned by: john
Priority: minor Milestone: 1.3.2
Component: selector Version: 1.3.2
Keywords: parents Cc:
Blocked by: Blocking:
Description

Not sure if this is related to jQuery or the update, but parents("SELECTOR") no longer finds elements with tag attributes defined across multiple lines.

Example, the following worked for me before the update, but does not work now:

<div class="testParent

secondClass">

<div class="child1"></div>

</div>

<script type="text/javascript">

$('.testChild').parents('.testParent').click(function(){

alert('gets here');

});

</script>

The following does work:

<div class="testParent secondClass">

<div class="child1"></div>

</div>

<script type="text/javascript">

$('.testChild').parents('.testParent').click(function(){

alert('gets here');

});

</script>

Attachments (0)
Change History (2)

Changed August 18, 2009 04:59PM UTC by rhorn comment:1

Not sure if this is related to jQuery or the update, but parents("SELECTOR") no longer finds elements with tag attributes defined across multiple lines.

Example, the following worked for me before the update, but does not work now:

<div class="testParent

secondClass">

<div class="testChild"></div>

</div>

<script type="text/javascript">

$('.testChild').parents('.testParent').click(function(){

alert('gets here');

});

</script>

The following does work: <div class="testParent secondClass">

<div class="testChild"></div>

</div>

<script type="text/javascript">

$('.testChild').parents('.testParent').click(function(){

alert('gets here');

});

</script>

Changed August 20, 2009 03:02AM UTC by dmethvin comment:2

resolution: → duplicate
status: newclosed

Duplicate of #4761.