Skip to main content

Bug Tracker

Side navigation

#6653 closed bug (worksforme)

Opened June 10, 2010 03:13AM UTC

Closed June 11, 2010 12:59AM UTC

element selector of v1.4.2 found extra (none-exist) elements in firefox v3.6.3

Reported by: koqiui Owned by:
Priority: Milestone: 1.4.2
Component: selector Version: 1.4.2
Keywords: found extra elements Cc:
Blocked by: Blocking:
Description

Given the following code:

<button>

echo selector result

</button>

<div>

DIV1

</div>

<div>

DIV2

</div>

<span>SPAN</span>

<script language="JavaScript" type="text/javascript">

$(function(){

------------

$("button").click(function(){

alert($("div").length);

$("div").each(function(i, elem){

alert((i + 1) + " - " + $(this).text());

});

});

------------

});

</script>


the result of found elements count is 3 in FF (works ok in IE : count is 2).

Attachments (2)
  • Capture-6653.PNG (93.1 KB) - added by dmethvin June 11, 2010 12:58AM UTC.

    Screen shot of Firebug showing div

  • test-6653.html (0.4 KB) - added by dmethvin June 11, 2010 12:58AM UTC.

    Test case for #6653

Change History (1)

Changed June 11, 2010 12:59AM UTC by dmethvin comment:1

resolution: → worksforme
status: newclosed

This seems to be an artifact of Firebug, which seems to be injecting a div into the DOM. See the attached test case and screen shot.